On Fri, May 06, 2011, Rajib Karmakar wrote: > Hi, > > > > I am developing and application using OpenSSL. I have a proprietary system > to handle connection/read data from sockets. All I need to do is to pass > callback functions to the system to > > 1. Handle new connection > > 2. Read data on the given port > > > > Now while I use OpenSSL, I need to use SSL_connect and SSL_accept to do the > handshake. But these calls are blocking and also use the sockets directly. > Is there any way to use the library so that it works as a event-based > handshake. >
Actually they aren't blocking and don't use sockets directly. They use a BIO I/O abstraction. Your problem can be resolved by either writing your own BIO or using BIO pairs. See the archives for discussion of these concepts. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org