From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32536 invoked by alias); 27 Apr 2011 19:48:25 -0000 Received: (qmail 32512 invoked by uid 22791); 27 Apr 2011 19:48:24 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cdptpa-omtalb.mail.rr.com (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.122) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Apr 2011 19:48:09 +0000 Authentication-Results: cdptpa-omtalb.mail.rr.com smtp.user=amassa@san.rr.com; auth=pass (LOGIN) X-Authority-Analysis: v=1.1 cv=2pE2Kh9Ye2ywHyyFZnC5ZQ1FvuPrdOtuPO5uN4ysVDU= c=1 sm=0 a=cFIqdw3RSOMA:10 a=IkcTkHD0fZMA:10 a=Ntg_Zx-WAAAA:8 a=CCpqsmhAAAAA:8 a=00i9YXTRJmc-YOVgaTwA:9 a=QEXdDO2ut3YA:10 a=-9Ssh8EKqK8A:10 a=8g97u3uHHZxdf5iFaGgFAA==:117 Received: from [10.127.132.170] ([10.127.132.170:45463] helo=cdptpa-web19-z02) by cdptpa-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTPA id EA/F2-05159-8F278BD4; Wed, 27 Apr 2011 19:48:08 +0000 Message-ID: <20110427194808.Z31JT.33363.root@cdptpa-web19-z02> Date: Wed, 27 Apr 2011 19:48:00 -0000 From: To: "Retallack, Mark" Cc: "'ecos-discuss@ecos.sourceware.org'" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sensitivity: Normal Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS] RE: RE: On Porting OpenSSL v1.0.0c X-SW-Source: 2011-04/txt/msg00096.txt.bz2 Hi, Thanks for the reply. I do have a call to get the further errors and code similar to the one you included below. It seems errno is 0 (showing no error), but I need to look into this further to see if it is implemented correctly on this platform because SSL_get_error returns 5 (as you mentioned). I have also tried to use the callback during connection to obtain more information. These are the output messages (snippet) I am seeing after the attempt to perform SSL_connect(): do the SSL connection SSL_connect:before/connect initialization SSL_connect:error in SSLv3 write client hello A SSL_connect status -1 SSL_connect Error 5 sockerrno to connect, err = 0 (No error) SSL Verify OK SSL_connect Failed The callback status returns "error in SSLv3 write client hello A". I have implemented my own ioctl() (returning ENOSYS) to handle any calls into that function. Any further ideas are greatly appreciated. Thanks, Anthony ---- "Retallack wrote: > Hi, > > One thing hat comes to mind, error 5 is SSL_ERROR_SYSCALL, see: http://www.openssl.org/docs/ssl/SSL_get_error.html > > It also suggests some more debug to use to find out what has happened (for example errno). You can also use something like the following to get a string of the error: > > unsigned long l; > while ((l=ERR_get_error())) > { > printf("ssl error: %s\n", ERR_error_string(l,NULL)); > } > > Because the underlying transport is not TCP, it might be returning an error because of blocking/non-blocking differences. Also I believe that openssl can use ioctl calls, this may be failing on a serial file descriptor. > > Mark Retallack > > -----Original Message----- > From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Anthony Massa > Sent: 26 April 2011 17:53 > To: ecos-discuss@ecos.sourceware.org > Subject: [ECOS] RE: RE: On Porting OpenSSL v1.0.0c > > Hi, > > I have OpenSSL built into my image (along with a slightly older version of eCos). I am not able to use the standard socket interface layer over Ethernet - basically the platform I'm using needs to communicate via serial for the network traffic. So, basically the socket interface functions (connect, send, recv) are implemented to use this serial interface. I have tested the raw socket interface for the connect, send, and recv functions and they appear to be able to echo with a server properly - so I believe the socket interface is running correctly. > > I am running the test code I included above (ssltest.c) and find that the test is failing at line 725 when the SSL_connect function is called. > > The output I see and errors returned are shown here: > > do the SSL connection > SSL_connect status -1 > SSL_connect Error 5 > > I appreciate any feedback. > > Thanks, > Anthony > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss