Hi,

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
example.

--

Michal
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

Reply via email to