fix warning when compiling against OpenSSL 3.0.x
`ERR_func_error_string()` has been deprecated. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -48,6 +48,12 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
||||||
|
#define STROPHE_ERR_func_error_string(e) ERR_func_error_string(e)
|
||||||
|
#else
|
||||||
|
#define STROPHE_ERR_func_error_string(e) ""
|
||||||
|
#endif
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
static const unsigned char *ASN1_STRING_get0_data(ASN1_STRING *asn1)
|
static const unsigned char *ASN1_STRING_get0_data(ASN1_STRING *asn1)
|
||||||
{
|
{
|
||||||
@@ -891,9 +897,9 @@ static void _tls_log_error(xmpp_ctx_t *ctx)
|
|||||||
do {
|
do {
|
||||||
e = ERR_get_error();
|
e = ERR_get_error();
|
||||||
if (e != 0) {
|
if (e != 0) {
|
||||||
strophe_debug(ctx, "tls", "error:%08X:%s:%s:%s", e,
|
strophe_debug(
|
||||||
ERR_lib_error_string(e), ERR_func_error_string(e),
|
ctx, "tls", "error:%08X:%s:%s:%s", e, ERR_lib_error_string(e),
|
||||||
ERR_reason_error_string(e));
|
STROPHE_ERR_func_error_string(e), ERR_reason_error_string(e));
|
||||||
}
|
}
|
||||||
} while (e != 0);
|
} while (e != 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user