New function SSL_renegotiate_pending().

New option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION.
This commit is contained in:
Bodo Möller
2001-09-20 22:54:09 +00:00
parent c404ff7955
commit 6b0e9facf4
5 changed files with 51 additions and 4 deletions

View File

@@ -836,6 +836,13 @@ int SSL_renegotiate(SSL *s)
return(s->method->ssl_renegotiate(s));
}
int SSL_renegotiate_pending(SSL *s)
{
/* becomes true when negotiation is requested;
* false again once a handshake has finished */
return (s->new_session != 0);
}
long SSL_ctrl(SSL *s,int cmd,long larg,char *parg)
{
long l;