From 2850fd7792a3f7cfc2ad2fd087ce94875dac15e2 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Mon, 31 Jan 2022 17:44:54 +0100 Subject: [PATCH] fix build with libressl Signed-off-by: Steffen Jaeckel --- src/tls_openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tls_openssl.c b/src/tls_openssl.c index 7dbc0c2..6628e2c 100644 --- a/src/tls_openssl.c +++ b/src/tls_openssl.c @@ -358,6 +358,7 @@ _get_alg(const xmpp_ctx_t *ctx, X509 *err_cert, xmpp_cert_element_t el) switch (el) { case XMPP_CERT_KEYALG: { #if OPENSSL_VERSION_NUMBER < 0x10100000L + UNUSED(rc); alg_nid = OBJ_obj2nid(err_cert->cert_info->key->algor->algorithm); #else X509_PUBKEY *pubkey = X509_get_X509_PUBKEY(err_cert);