From 7baa11e3309aa506272733d2d21971a45b90d8e1 Mon Sep 17 00:00:00 2001 From: Ian Craggs Date: Fri, 4 Feb 2022 21:31:19 +0000 Subject: [PATCH] Add OpenSSL version conditional around set security level --- src/SSLSocket.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SSLSocket.c b/src/SSLSocket.c index ade31e11..ac046a6d 100644 --- a/src/SSLSocket.c +++ b/src/SSLSocket.c @@ -593,7 +593,9 @@ int SSLSocket_createContext(networkHandles* net, MQTTClient_SSLOptions* opts) } } +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) SSL_CTX_set_security_level(net->ctx, 1); +#endif if (opts->keyStore) {