My current application uses socket for communication between the client and
server and I am adapting it with OpenSsl. I would like to have your advice.

With socket, I use select() and then call send() / recv(). In order to work
with Ssl, I my plan is to keep the select() unchanged, but will change
send()/recv() to SSL_write, SSL_read() correspodingly with appropriate SSL
object that has been binded to the socket.

Also, right after select() detects the new connection, I added SSL code (
create new Ctx, Ssl, BIO objects,  bind it to the socket, call SSL_accept
and do some post connection check for valid certifications ... I also added
similar things on the client side  ) and it seems everything works as
expected : the client can connect to the server, and reports corresponding
messages whenever I change the attributes of the certificates.

I would like to know if this is an ok way to go before going too far.

Thanks for your advice,

Vu

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to