Skip to content

Commit

Permalink
Fix build with OpenSSL 1.1.1a
Browse files Browse the repository at this point in the history
OpenSSL 1.1.1a replaces the CRYPTO_get_locking_callback() function with
a macro definition to (NULL).
  • Loading branch information
Partmedia committed Dec 31, 2018
1 parent 4f0394a commit a78cff3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/SSL.cpp
Expand Up @@ -29,8 +29,7 @@ void MumbleSSL::initialize() {
// If we detect that no locking callback is configured, we
// have to set it up ourselves to allow multi-threaded use
// of OpenSSL.
void *lockcb = reinterpret_cast<void *>(CRYPTO_get_locking_callback());
if (lockcb == NULL) {
if (CRYPTO_get_locking_callback() == NULL) {
SSLLocks::initialize();
}
}
Expand Down

0 comments on commit a78cff3

Please sign in to comment.