]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: Undefined reference when building with OPENSSL_NO_DEPRECATED
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 3 Apr 2023 09:17:26 +0000 (11:17 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 3 Apr 2023 09:46:54 +0000 (11:46 +0200)
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

index 2f6b7c20cd99f1082ab9d12dd6f57e18f21e9298..d1fa7baac5d514c115e99d2e18ae7bc324c15d4f 100644 (file)
@@ -15,6 +15,7 @@
 #include <openssl/err.h>
 #include <openssl/rand.h>
 #include <openssl/hmac.h>
+#include <openssl/rsa.h>
 #if (defined SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB && !defined OPENSSL_NO_OCSP)
 #include <openssl/ocsp.h>
 #endif