forked from wolfSSL/wolfssl
Merge pull request #6765 from kojo1/zd16462
Eliminate bad record mac alert
This commit is contained in:
@ -20784,7 +20784,7 @@ default:
|
||||
return HandleDTLSDecryptFailed(ssl);
|
||||
}
|
||||
#endif /* WOLFSSL_DTLS */
|
||||
#ifdef WOLFSSL_EXTRA_ALERTS
|
||||
#if defined(WOLFSSL_EXTRA_ALERTS) && !defined(WOLFSSL_NO_ETM_ALERT)
|
||||
if (!ssl->options.dtls)
|
||||
SendAlert(ssl, alert_fatal, bad_record_mac);
|
||||
#endif
|
||||
@ -20879,7 +20879,7 @@ default:
|
||||
#endif
|
||||
) {
|
||||
WOLFSSL_MSG("Plaintext too long - Encrypt-Then-MAC");
|
||||
#if defined(WOLFSSL_EXTRA_ALERTS)
|
||||
#if defined(WOLFSSL_EXTRA_ALERTS) && !defined(WOLFSSL_NO_ETM_ALERT)
|
||||
SendAlert(ssl, alert_fatal, record_overflow);
|
||||
#endif
|
||||
WOLFSSL_ERROR_VERBOSE(BUFFER_ERROR);
|
||||
|
Reference in New Issue
Block a user