Merge pull request #6772 from bandi13/zd16449_more_fixes

Zd16449 more fixes
This commit is contained in:
JacobBarthelmeh
2023-09-14 09:35:01 -06:00
committed by GitHub
2 changed files with 15 additions and 13 deletions

View File

@@ -75,7 +75,7 @@ function Test() {
function Remove() { function Remove() {
UnlinkFiles UnlinkFiles
rm -rf ./async rm -rf ${ASYNC_DIR}
} }
if [ "$#" -gt 1 ]; then if [ "$#" -gt 1 ]; then

View File

@@ -8665,6 +8665,7 @@ static int SendTls13CertificateVerify(WOLFSSL* ssl)
} }
EncodeSigAlg(ssl->options.hashAlgo, args->sigAlgo, args->verify); EncodeSigAlg(ssl->options.hashAlgo, args->sigAlgo, args->verify);
if (args->sigData == NULL) {
if (ssl->hsType == DYNAMIC_TYPE_RSA) { if (ssl->hsType == DYNAMIC_TYPE_RSA) {
int sigLen = MAX_SIG_DATA_SZ; int sigLen = MAX_SIG_DATA_SZ;
if (args->length > MAX_SIG_DATA_SZ) if (args->length > MAX_SIG_DATA_SZ)
@@ -8679,6 +8680,7 @@ static int SendTls13CertificateVerify(WOLFSSL* ssl)
if (args->sigData == NULL) { if (args->sigData == NULL) {
ERROR_OUT(MEMORY_E, exit_scv); ERROR_OUT(MEMORY_E, exit_scv);
} }
}
/* Create the data to be signed. */ /* Create the data to be signed. */
ret = CreateSigData(ssl, args->sigData, &args->sigDataSz, 0); ret = CreateSigData(ssl, args->sigData, &args->sigDataSz, 0);