From 0264df154663f35a0ce11771adcf4d8c13966961 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Tue, 31 Jan 2023 11:55:56 +0100 Subject: [PATCH] Definition was defined out in some configs --- wolfssl/internal.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wolfssl/internal.h b/wolfssl/internal.h index 9a6898911..4a2108a51 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -5863,10 +5863,6 @@ WOLFSSL_LOCAL int cipherExtraData(WOLFSSL* ssl); WOLFSSL_LOCAL int SendHelloVerifyRequest(WOLFSSL* ssl, const byte* cookie, byte cookieSz); - WOLFSSL_LOCAL int CreateCookieExt(const WOLFSSL* ssl, byte* hash, - word16 hashSz, TLSX** exts, - byte cipherSuite0, byte cipherSuite); - #if !defined(NO_WOLFSSL_SERVER) WOLFSSL_LOCAL int DoClientHelloStateless(WOLFSSL* ssl, const byte* input, word32* inOutIdx, word32 helloSz); @@ -6224,6 +6220,12 @@ WOLFSSL_LOCAL int FindPskSuite(const WOLFSSL* ssl, PreSharedKey* psk, WOLFSSL_LOCAL int wolfSSL_GetHmacType_ex(CipherSpecs* specs); +#if defined(WOLFSSL_SEND_HRR_COOKIE) && !defined(NO_WOLFSSL_SERVER) +WOLFSSL_LOCAL int CreateCookieExt(const WOLFSSL* ssl, byte* hash, + word16 hashSz, TLSX** exts, + byte cipherSuite0, byte cipherSuite); +#endif + #ifdef __cplusplus } /* extern "C" */ #endif