Skip to content

Commit

Permalink
Add OpenSSL version conditional around set security level
Browse files Browse the repository at this point in the history
  • Loading branch information
icraggs committed Feb 4, 2022
1 parent 017e0b4 commit 7baa11e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SSLSocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7baa11e

Please sign in to comment.