summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s_client.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/s_client.c b/src/s_client.c
index 37d59fb..1a1da34 100644
--- a/src/s_client.c
+++ b/src/s_client.c
@@ -349,7 +349,13 @@ s_client(int argc, char **argv)
#ifdef HAVE_SUPPORTED_CURVES
use_curves(ctx) == false ||
#endif
- (ssl = wolfSSL_new(ctx)) == NULL) {
+ (ssl = wolfSSL_new(ctx)) == NULL ||
+#if defined(HAVE_SECURE_RENEGOTIATION) || \
+ defined(HAVE_SERVER_RENEGOTIATION_INFO)
+ wolfSSL_UseSecureRenegotiation(ssl) !=
+ WOLFSSL_SUCCESS ||
+#endif
+ false) {
fputs("Out of memory\n", stderr);
goto error;
}