From 59290cd066f648435faa40cc6f88b3fef630f963 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 25 Apr 2024 22:08:58 -0500 Subject: [PATCH] src/quic.c: fix -Wunused-function for evp_cipher_eq(). --- src/quic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/quic.c b/src/quic.c index b1af7f176..0c902f422 100644 --- a/src/quic.c +++ b/src/quic.c @@ -1013,7 +1013,8 @@ const WOLFSSL_EVP_CIPHER* wolfSSL_quic_get_aead(WOLFSSL* ssl) return evp_cipher; } -static int evp_cipher_eq(const WOLFSSL_EVP_CIPHER* c1, +/* currently only used if HAVE_CHACHA && HAVE_POLY1305. */ +WC_MAYBE_UNUSED static int evp_cipher_eq(const WOLFSSL_EVP_CIPHER* c1, const WOLFSSL_EVP_CIPHER* c2) { /* We could check on nid equality, but we seem to have singulars */