aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-03-18 10:51:51 +0200
committerMatias Elo <matias.elo@nokia.com>2022-03-21 08:31:26 +0200
commitadb31a4493c3d6bacd7ffce3438a22af92b71a73 (patch)
tree26f692563fb0fcc85b6ed6f686739c9cb3f93768 /example
parentbf438fcfbb016b1eb9575c16e28dc7b220a96661 (diff)
example: ipsec: ignore warnings from deprecated openssl APIs
For now, ignore warnings about APIs deprecated in OpenSSL 3.0. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'example')
-rw-r--r--example/ipsec_crypto/odp_ipsec_stream.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/example/ipsec_crypto/odp_ipsec_stream.c b/example/ipsec_crypto/odp_ipsec_stream.c
index a24d4b4f9..0a0710a13 100644
--- a/example/ipsec_crypto/odp_ipsec_stream.c
+++ b/example/ipsec_crypto/odp_ipsec_stream.c
@@ -15,6 +15,7 @@
#include <openssl/des.h>
#include <openssl/rand.h>
#include <openssl/hmac.h>
+#include <openssl/opensslv.h>
#include <odp_api.h>
@@ -26,6 +27,11 @@
#define LOOP_DEQ_COUNT 32 /**< packets to dequeue at once */
+/* Ignore warnings about APIs deprecated in OpenSSL 3.0 */
+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
/**
* Stream packet header
*/