New function SSL_renegotiate_pending().
[openssl.git] / ssl / ssl_lib.c
index 89c3c2d..f5512c4 100644 (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;