KSSL: Add names for OpenSSL 3.x libraries to SSL libraries search.

Use OPENSSL_SHLIB_VERSION for default libraries version.

This relates to issue #176.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/177/head
Slávek Banko 2 years ago
parent 63758dcca1
commit cb87252f7d
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -33,6 +33,8 @@
#include <unistd.h>
#include "kopenssl.h"
#define STRINGIFY(x) #x
#define GET_CRYPTOLIB_SYMBOL(a) ((_cryptoLib->hasSymbol(a)) ? _cryptoLib->symbol(a) : NULL)
#define GET_SSLLIB_SYMBOL(a) ((_sslLib->hasSymbol(a)) ? _sslLib->symbol(a) : NULL)
@ -367,10 +369,14 @@ TDEConfig *cfg;
<< "libssl.dylib"
<< "libssl.0.9.dylib"
#else
#ifdef OPENSSL_SHLIB_VERSION
<< "libssl.so." STRINGIFY(OPENSSL_SHLIB_VERSION)
#endif
#ifdef SHLIB_VERSION_NUMBER
<< "libssl.so." SHLIB_VERSION_NUMBER
#endif
<< "libssl.so"
<< "libssl.so.3"
<< "libssl.so.0"
#endif
;
@ -384,10 +390,14 @@ TDEConfig *cfg;
<< "libcrypto.dylib"
<< "libcrypto.0.9.dylib"
#else
#ifdef OPENSSL_SHLIB_VERSION
<< "libcrypto.so." STRINGIFY(OPENSSL_SHLIB_VERSION)
#endif
#ifdef SHLIB_VERSION_NUMBER
<< "libcrypto.so." SHLIB_VERSION_NUMBER
#endif
<< "libcrypto.so"
<< "libcrypto.so.3"
<< "libcrypto.so.0"
#endif
;

Loading…
Cancel
Save