There is a exmple implemtation of usage of bio_pairs in ssltest.c file included with the ssl distribution. This should give you a good idea about how to use them properly. I too took that same implemetion from ssltest.c and wraped it in a class for my IOCP server without too much of a trouble.

Regards,

Usman.


From:  "terry johnston" <[EMAIL PROTECTED]>
Reply-To:  openssl-users@openssl.org
To:  openssl-users@openssl.org
Subject:  openssl with non-blocking comms
Date:  Mon, 29 Jan 2007 13:16:00 -0800
MIME-Version:  1.0
X-Sender:  "terry johnston" <[EMAIL PROTECTED]>
Received:  from mmx1.engelschall.com ([195.30.6.154]) by bay0-mc4-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Mon, 29 Jan 2007 13:50:04 -0800
Received:  by mmx1.engelschall.com (Postfix)id 7192B5642D; Mon, 29 Jan 2007 22:48:41 +0100 (CET)
Received:  from master.openssl.org (master.openssl.org [195.30.6.166])by mmx1.engelschall.com (Postfix) with ESMTP id 67E1F56417for <[EMAIL PROTECTED]>; Mon, 29 Jan 2007 22:48:41 +0100 (CET)
Received:  by master.openssl.org (Postfix)id 0838E1AC60CB; Mon, 29 Jan 2007 22:48:41 +0100 (CET)
Received:  by master.openssl.org (Postfix, from userid 29101)id E3E701AC60B6; Mon, 29 Jan 2007 22:48:40 +0100 (CET)
Received:  from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28])by master.openssl.org (Postfix) with ESMTP id 1D7371AC6078for <openssl-users@openssl.org>; Mon, 29 Jan 2007 22:48:29 +0100 (CET)
Received:  from out1.internal (unknown [10.202.2.149])by out1.messagingengine.com (Postfix) with ESMTP id E04C19869Cfor <openssl-users@openssl.org>; Mon, 29 Jan 2007 16:16:00 -0500 (EST)
Received:  from web1.messagingengine.com ([10.202.2.210]) by out1.internal (MEProxy); Mon, 29 Jan 2007 16:16:00 -0500
Received:  by web1.messagingengine.com (Postfix, from userid 99)id C7A142828C; Mon, 29 Jan 2007 16:16:00 -0500 (EST)
>Hello All. I am trying to implement openssl with a server that uses an
>event
>notification library under Linux. I am using bio pairs to separate the
>non-blocking
>comms from the ssl layer. I am currently not able to get past the first
>SSL_accept() call.
>
>Each new client connection does the following...
>
>- gets accepted normally
>- creates a bio pair
>- sets up read & write event notification
>- receives a read notification - reads data & adds it to the network bio
>using BIO_write()
>- does a SSL_accept(), which returns -1
>- calls SSL_get_error(), which returns 111 - "not yet implemented"?
>- calls BIO_ctrl_pending() on the network bio, which shows there is
>nothing to get (presume I would call a BIO_read() to get any data for
>on-sending)
>- adds another read event notification but nothing arrives
>
>what am I doing wrong?!
>
>thank you in advance
>Terry Johnston
>--
>   terry johnston
>   [EMAIL PROTECTED]
>
>______________________________________________________________________
>OpenSSL Project                                 http://www.openssl.org
>User Support Mailing List                    openssl-users@openssl.org
>Automated List Manager                           [EMAIL PROTECTED]


Don't just search. Find. MSN Search Check out the new MSN Search! ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]

Reply via email to