From 26e1432436723175962bcf4b48475dad65308a5c Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Mon, 3 Apr 2023 11:17:26 +0200 Subject: [PATCH] BUG/MINOR: ssl: Undefined reference when building with OPENSSL_NO_DEPRECATED MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If OPENSSL_NO_DEPRECATED is set, we get a 'error: ‘RSA_PKCS1_PADDING’ undeclared' when building jwt.c. The symbol is not deprecated, we are just missing an include. This was raised in GitHub issue #2098. It does not need to be backported. --- include/haproxy/openssl-compat.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/haproxy/openssl-compat.h b/include/haproxy/openssl-compat.h index 2f6b7c20c..d1fa7baac 100644 --- a/include/haproxy/openssl-compat.h +++ b/include/haproxy/openssl-compat.h @@ -15,6 +15,7 @@ #include #include #include +#include #if (defined SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB && !defined OPENSSL_NO_OCSP) #include #endif -- 2.47.3