mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
@@ -2524,12 +2524,15 @@ static int ProcessSessionTicket(const byte* input, int* sslBytes,
|
||||
SnifferSession* session, char* error)
|
||||
{
|
||||
word16 len;
|
||||
|
||||
#ifdef WOLFSSL_TLS13
|
||||
WOLFSSL* ssl;
|
||||
|
||||
if (session->flags.side == WOLFSSL_SERVER_END)
|
||||
ssl = session->sslServer;
|
||||
else
|
||||
ssl = session->sslClient;
|
||||
#endif
|
||||
|
||||
/* make sure can read through hint len */
|
||||
if (TICKET_HINT_LEN > *sslBytes) {
|
||||
|
@@ -36021,9 +36021,12 @@ static int hash2mgf(enum wc_HashType hType)
|
||||
return WC_MGF1SHA1;
|
||||
#endif
|
||||
#ifndef NO_SHA256
|
||||
#ifdef WOLFSSL_SHA224
|
||||
case WC_HASH_TYPE_SHA224:
|
||||
#ifdef WOLFSSL_SHA224
|
||||
return WC_MGF1SHA224;
|
||||
#else
|
||||
WOLFSSL_MSG("Unrecognized or unsupported hash function");
|
||||
return WC_MGF1NONE;
|
||||
#endif
|
||||
case WC_HASH_TYPE_SHA256:
|
||||
return WC_MGF1SHA256;
|
||||
|
Reference in New Issue
Block a user