Changes in response to other PRs

This commit is contained in:
TakayukiMatsuo
2022-08-08 02:10:14 +09:00
parent 2d2c55f1c1
commit 9fd56c9c5c
2 changed files with 2 additions and 8 deletions

View File

@ -2312,14 +2312,9 @@ int DecryptTls13(WOLFSSL* ssl, byte* output, const byte* input, word16 sz,
if (ret != CRYPTOCB_UNAVAILABLE) {
#ifndef WOLFSSL_EARLY_DATA
if (ret < 0) {
if (doAlert) {
SendAlert(ssl, alert_fatal, bad_record_mac);
}
ret = VERIFY_MAC_ERROR;
WOLFSSL_ERROR_VERBOSE(ret);
}
#else
(void)doAlert;
#endif
return ret;
}

View File

@ -2794,9 +2794,8 @@ int wc_tsip_generateVerifyData(
WOLFSSL_LEAVE("tsip_generateVerifyData", BAD_FUNC_ARG);
return BAD_FUNC_ARG;
}
if (XSTRNCMP((const char*)side, (const char*)tls_server, FINISHED_LABEL_SZ)
== 0)
{
if (XSTRNCMP((const char*)side, (const char*)kTlsServerFinStr,
FINISHED_LABEL_SZ) == 0) {
l_side = R_TSIP_TLS_GENERATE_SERVER_VERIFY;
}