diff options
author | Bodo Möller <bodo@openssl.org> | 2001-09-20 22:54:09 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-09-20 22:54:09 +0000 |
commit | 6b0e9facf4a24553b01c536bb2981c8eb1b7c136 (patch) | |
tree | be1e164fab3d4f4d81d14dcab7ca7bbe5fbcf740 /ssl/ssl_lib.c | |
parent | c404ff795549d82d8cb6fcfaf8b7932961b3f694 (diff) |
New function SSL_renegotiate_pending().
New option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION.
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 89c3c2d4f4..f5512c465e 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -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; |