<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
</head><body><p>Hi,<br></p><p>I'm looking for automatic periodical renegotiation code example.<br></p><p>I found one in group archives:<br></p><p>SSL_CTX* ctx;<br>BIO* bio = BIO_new_ssl(ctx, false);<br>BIO_push(bio, BIO_new_socket((int)fd, 0);<br>BIO_set_ssl_renegotiate_bytes(bio, bytes);<br>BIO_set_ssl_renegotiate_timeout(bio, seconds);</p><p>but it is not working for me - BIO_get_num_renegotiates(bio) always returns 0.<br></p><p>Are there any specific prerequisites to get it working? Or do you have any other example.<br></p><p>-- <br></p><p>Michal<br></p></body></html>