oops, revert previous patch

This commit is contained in:
Dr. Stephen Henson
2010-08-27 12:10:12 +00:00
parent 74b5feea7b
commit c6dd154b3e
9 changed files with 47 additions and 25 deletions

View File

@@ -317,7 +317,7 @@ unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, unsigned cha
}
/* Add RI if renegotiating */
if (s->renegotiate)
if (s->new_session)
{
int el;
@@ -969,7 +969,7 @@ int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, in
/* Need RI if renegotiating */
if (!renegotiate_seen && s->renegotiate &&
if (!renegotiate_seen && s->new_session &&
!(s->options & SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION))
{
*al = SSL_AD_HANDSHAKE_FAILURE;