summaryrefslogtreecommitdiffstats
path: root/ssl/t1_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-01-07 19:05:03 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-01-07 19:05:03 +0000
commit73ff97ad7618a33efe4c6b20580d923bc3dd6d7e (patch)
treebebdbf8f9950dcfbac0c9c3851cff93f21e05d8f /ssl/t1_lib.c
parent0d8ffc20073f35e4e2155bc3432c2d00d273cddf (diff)
Simplify RI+SCSV logic:
1. Send SCSV is not renegotiating, never empty RI. 2. Send RI if renegotiating.
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r--ssl/t1_lib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 4eb6d13840..4cb171e6d4 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -316,8 +316,9 @@ unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, unsigned cha
ret+=size_str;
}
- /* Add the renegotiation option: TODOEKR switch */
- {
+ /* Add RI if renegotiating */
+ if (s->new_session)
+ {
int el;
if(!ssl_add_clienthello_renegotiate_ext(s, 0, &el, 0))