Merge pull request #7003 from SparkiDev/ssl_make_x25519_key_temp

SSL: make temp X25519/X448 key failure
This commit is contained in:
JacobBarthelmeh 2023-11-28 10:46:51 -07:00 committed by GitHub
commit 373fc537f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32904,6 +32904,10 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
ssl->eccTempKeyPresent =
DYNAMIC_TYPE_CURVE25519;
}
else {
FreeKey(ssl, DYNAMIC_TYPE_CURVE25519,
(void**)&ssl->eccTempKey);
}
}
break;
}
@ -32927,6 +32931,10 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
ssl->eccTempKeyPresent =
DYNAMIC_TYPE_CURVE448;
}
else {
FreeKey(ssl, DYNAMIC_TYPE_CURVE448,
(void**)&ssl->eccTempKey);
}
}
break;
}