summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2025-11-28 08:39:54 +0200
committerGitHub <noreply@github.com>2025-11-28 08:39:54 +0200
commitac31c84a36c069c90e37ab28a9e980c0749b2b37 (patch)
tree000feeda61f4fcc3bda6cd625d94c178fbbaa2da /crypto
parent4dd5072e09df7bf487694fe6bdd16715b419c4f6 (diff)
parentf03dc39ae891d20e56d7acd764a9b5764a8a2fef (diff)
downloadaccel-ppp-ac31c84a36c069c90e37ab28a9e980c0749b2b37.tar.gz
accel-ppp-ac31c84a36c069c90e37ab28a9e980c0749b2b37.zip
Merge pull request #267 from nuclearcat/fix-ssl-warnings
Suppress OpenSSL 3.0 deprecation warnings for legacy crypto APIs
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h
index 9e2e8401..45de740e 100644
--- a/crypto/crypto.h
+++ b/crypto/crypto.h
@@ -3,6 +3,20 @@
#ifdef CRYPTO_OPENSSL
+/*
+ * Suppress OpenSSL 3.0 deprecation warnings for legacy crypto APIs.
+ * These low-level APIs (MD5, SHA1, DES, etc.) are deprecated in OpenSSL 3.0
+ * but still functional and required for protocol compatibility.
+ *
+ * This approach is consistent with other major projects:
+ * - FreeRADIUS: Uses OPENSSL_API_COMPAT for the same reason
+ * - OpenVPN: Uses OPENSSL_API_COMPAT to maintain legacy protocol support
+ *
+ * The deprecated functions will remain available in OpenSSL 3.x series.
+ * Migration to EVP API may be considered for future major versions.
+ */
+#define OPENSSL_API_COMPAT 0x10100000L
+
#include <openssl/md4.h>
#include <openssl/md5.h>
#include <openssl/sha.h>