OpenSSL: Fix build with current OpenSSL master branch snapshot
OpenSSL 1.1.x will apparently go out with "SSLeay" renamed in the API to "OpenSSL", which broke the build here for fetching the version of the running OpenSSL library when wpa_supplicant/hostapd is built against the current OpenSSL snapshot. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d887ed3f95
commit
b34c623c07
1 changed files with 6 additions and 0 deletions
|
@ -5012,9 +5012,15 @@ int tls_connection_set_session_ticket_cb(void *tls_ctx,
|
||||||
|
|
||||||
int tls_get_library_version(char *buf, size_t buf_len)
|
int tls_get_library_version(char *buf, size_t buf_len)
|
||||||
{
|
{
|
||||||
|
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||||
|
return os_snprintf(buf, buf_len, "OpenSSL build=%s run=%s",
|
||||||
|
OPENSSL_VERSION_TEXT,
|
||||||
|
OpenSSL_version(OPENSSL_VERSION));
|
||||||
|
#else
|
||||||
return os_snprintf(buf, buf_len, "OpenSSL build=%s run=%s",
|
return os_snprintf(buf, buf_len, "OpenSSL build=%s run=%s",
|
||||||
OPENSSL_VERSION_TEXT,
|
OPENSSL_VERSION_TEXT,
|
||||||
SSLeay_version(SSLEAY_VERSION));
|
SSLeay_version(SSLEAY_VERSION));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue