From 294e46e21aa18abd6f2f1112ee5b8c9ff8130100 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 17 Sep 2020 17:44:07 +0200 Subject: [PATCH] Set options when creating SSL --- src/internal.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/internal.c b/src/internal.c index 5702513ce..dd63fdd36 100644 --- a/src/internal.c +++ b/src/internal.c @@ -5339,6 +5339,13 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx, int writeDup) #if defined(HAVE_ECC) || defined(HAVE_ED25519) || defined(HAVE_ED448) ssl->pkCurveOID = ctx->pkCurveOID; #endif + +#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL) + if (wolfSSL_set_options(ssl, ctx->mask) == 0) { + WOLFSSL_MSG("wolfSSL_set_options error"); + return BAD_FUNC_ARG; + } +#endif #ifdef OPENSSL_EXTRA ssl->CBIS = ctx->CBIS; #endif