forked from wolfSSL/wolfssl
Merge pull request #3271 from SparkiDev/tls13_peek
TLS 1.3: allow wolfSSL_peek() to return WANT_READ
This commit is contained in:
@ -17895,6 +17895,16 @@ startScr:
|
|||||||
goto startScr;
|
goto startScr;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WOLFSSL_TLS13
|
||||||
|
if (IsAtLeastTLSv1_3(ssl->version) && ssl->options.handShakeDone &&
|
||||||
|
ssl->curRL.type == handshake && peek) {
|
||||||
|
WOLFSSL_MSG("Got Handshake Messge in APP data");
|
||||||
|
if (ssl->buffers.inputBuffer.length == 0) {
|
||||||
|
ssl->error = WOLFSSL_ERROR_WANT_READ;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sz < (int)ssl->buffers.clearOutputBuffer.length)
|
if (sz < (int)ssl->buffers.clearOutputBuffer.length)
|
||||||
|
Reference in New Issue
Block a user