summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2025-11-26 20:22:26 +0200
committerDenys Fedoryshchenko <denys.f@collabora.com>2025-11-26 20:23:38 +0200
commitf03dc39ae891d20e56d7acd764a9b5764a8a2fef (patch)
treeba79db962d5758e68cc706cfa1fb88b49669f4b8 /accel-pppd
parentd013d3ff2150ca425ff13ce69d0eab394153803a (diff)
downloadaccel-ppp-f03dc39ae891d20e56d7acd764a9b5764a8a2fef.tar.gz
accel-ppp-f03dc39ae891d20e56d7acd764a9b5764a8a2fef.zip
Suppress OpenSSL 3.0 deprecation warnings for legacy crypto APIs
We are using similar approach as in other projects, easiest one, but probably in future it will break as soon as this functions will be removed completely. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/sstp/sstp.c7
-rw-r--r--accel-pppd/radius/packet.c6
2 files changed, 12 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c
index d63caa32..9239da30 100644
--- a/accel-pppd/ctrl/sstp/sstp.c
+++ b/accel-pppd/ctrl/sstp/sstp.c
@@ -20,8 +20,13 @@
#include "linux_ppp.h"
#ifdef CRYPTO_OPENSSL
+/*
+ * Suppress OpenSSL 3.0 deprecation warnings for DH API.
+ * See crypto.h for detailed explanation.
+ */
+#define OPENSSL_API_COMPAT 0x10100000L
#include <openssl/ssl.h>
-#include <openssl/err.h>
+#include <openssl/err.h>
#endif
#include "triton.h"
diff --git a/accel-pppd/radius/packet.c b/accel-pppd/radius/packet.c
index 0ef9a0e3..0bb64953 100644
--- a/accel-pppd/radius/packet.c
+++ b/accel-pppd/radius/packet.c
@@ -8,6 +8,12 @@
#include <sys/mman.h>
#include <linux/mman.h>
#include <arpa/inet.h>
+
+/*
+ * Suppress OpenSSL 3.0 deprecation warnings for HMAC API.
+ * See crypto.h for detailed explanation.
+ */
+#define OPENSSL_API_COMPAT 0x10100000L
#include <openssl/hmac.h>
#include <openssl/evp.h>