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) {