From 7fa825fde036b9626860275d45dc69e29b60a459 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 9 Dec 2016 13:39:00 -0800 Subject: [PATCH 1/2] Enable secure renegotiation by default for Windows library build. --- IDE/WIN/user_settings.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IDE/WIN/user_settings.h b/IDE/WIN/user_settings.h index a3146861f..9ebc2ca77 100755 --- a/IDE/WIN/user_settings.h +++ b/IDE/WIN/user_settings.h @@ -30,6 +30,8 @@ #define NO_PSK #define HAVE_EXTENDED_MASTER #define WOLFSSL_SNIFFER + #define HAVE_TLS_EXTENSIONS + #define HAVE_SECURE_RENEGOTIATION #else /* The servers and clients */ #define OPENSSL_EXTRA From e80331e03a58759df8e551ee924dde9892954be8 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 9 Dec 2016 14:31:21 -0800 Subject: [PATCH 2/2] fix Windows debug build warning with secure renegotiation --- src/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls.c b/src/tls.c index bd54de604..c0ca6c151 100644 --- a/src/tls.c +++ b/src/tls.c @@ -3143,7 +3143,7 @@ static word16 TLSX_SecureRenegotiation_Write(SecureRenegotiation* data, } } - output[0] = offset - 1; /* info length - self */ + output[0] = (byte)(offset - 1); /* info length - self */ return offset; }