forked from wolfSSL/wolfssl
If encryption setup, TLS 1.3 alerts encrypted
This commit is contained in:
@ -17521,7 +17521,7 @@ int SendAlert(WOLFSSL* ssl, int severity, int type)
|
|||||||
/* only send encrypted alert if handshake actually complete, otherwise
|
/* only send encrypted alert if handshake actually complete, otherwise
|
||||||
other side may not be able to handle it */
|
other side may not be able to handle it */
|
||||||
if (IsEncryptionOn(ssl, 1) && (IsAtLeastTLSv1_3(ssl->version) ||
|
if (IsEncryptionOn(ssl, 1) && (IsAtLeastTLSv1_3(ssl->version) ||
|
||||||
ssl->options.handShakeDone)) {
|
ssl->encrypt.setup)) {
|
||||||
sendSz = BuildMessage(ssl, output, outputSz, input, ALERT_SIZE, alert,
|
sendSz = BuildMessage(ssl, output, outputSz, input, ALERT_SIZE, alert,
|
||||||
0, 0, 0);
|
0, 0, 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user