Submitted By: Robin Seggelmann <seggelmann@fh-muenster.de>

Fix other cases not covered by original patch.
This commit is contained in:
Dr. Stephen Henson
2010-08-27 11:57:42 +00:00
parent 11a36aa96f
commit 35cae95032
9 changed files with 25 additions and 47 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->new_session)
if (s->renegotiate)
{
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->new_session &&
if (!renegotiate_seen && s->renegotiate &&
!(s->options & SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION))
{
*al = SSL_AD_HANDSHAKE_FAILURE;