diff options
Diffstat (limited to 'example/ipsec_crypto/odp_ipsec_stream.c')
-rw-r--r-- | example/ipsec_crypto/odp_ipsec_stream.c | 6 |
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 */ |