[openssl-users] automatic renegotiation

michal michal michal at x-net.pl
Wed Feb 24 10:15:29 UTC 2016


I'm looking for automatic periodical renegotiation code example.

I found one in group archives:

SSL_CTX* ctx;
BIO* bio = BIO_new_ssl(ctx, false);
BIO_push(bio, BIO_new_socket((int)fd, 0);
BIO_set_ssl_renegotiate_bytes(bio, bytes);
BIO_set_ssl_renegotiate_timeout(bio, seconds);

but it is not working for me - BIO_get_num_renegotiates(bio) always returns 0.

Are there any specific prerequisites to get it working? Or do you have any other


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20160224/b42ce9d6/attachment.html>

More information about the openssl-users mailing list