Hello Team,

In our application we open "non blocking socket" for read and write
operation and pass the  fd to openssl through BOI API's like this

bio = BIO_new(BIO_s_socket());
BIO_set_fd(bio, socket_fd, BIO_NOCLOSE);
And
we update this bio to SSL using SSL_set_bio() function.

My query is do we need to update SSL_CTX with these modes when we use "non
blocking sockets"?

SSL_CTX_set_mode(ctx, SSL_MODE_ENABLE_PARTIAL_WRITE);

SSL_CTX_set_mode(ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);


Or without setting this also non blocking sockets work?


Please provide your inputs at Earliest.


Thanks & Regards,

Rajeswari.

Reply via email to