Browse Source

src/quic.c: fix -Wunused-function for evp_cipher_eq().

Daniel Pouzzner 1 week ago
parent
commit
59290cd066
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/quic.c

+ 2 - 1
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 */