diff --git a/src/internal.c b/src/internal.c index b7956639f..aea6e7a31 100755 --- a/src/internal.c +++ b/src/internal.c @@ -18191,6 +18191,7 @@ int SendClientKeyExchange(WOLFSSL* ssl) ssl->buffers.sig.buffer, &ssl->buffers.sig.length, args->encSecret, &args->encSz); + /* set the max agree result size */ ssl->arrays->preMasterSz = ENCRYPT_LEN; break; } @@ -23336,6 +23337,9 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx, ssl->buffers.serverDH_P.length, ssl->buffers.serverDH_G.buffer, ssl->buffers.serverDH_G.length); + + /* set the max agree result size */ + ssl->arrays->preMasterSz = ENCRYPT_LEN; break; } #endif /* !NO_DH */ diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index 3345e0f55..559fea1e4 100755 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -80,7 +80,7 @@ int wolfCrypt_Init(void) ret = wolfAsync_HardwareStart(); if (ret != 0) { WOLFSSL_MSG("Async hardware start failed"); - return ret; + /* don't return failure, allow operation to continue */ } #endif