tls-crypto: Destroy HKDF instance if keys are derived multiple times
This will be the case during a retry.
This commit is contained in:
@@ -1270,6 +1270,7 @@ static void destroy_aeads(private_tls_crypto_t *this)
|
|||||||
static bool create_ciphers(private_tls_crypto_t *this, suite_algs_t *algs)
|
static bool create_ciphers(private_tls_crypto_t *this, suite_algs_t *algs)
|
||||||
{
|
{
|
||||||
destroy_aeads(this);
|
destroy_aeads(this);
|
||||||
|
DESTROY_IF(this->hkdf);
|
||||||
DESTROY_IF(this->prf);
|
DESTROY_IF(this->prf);
|
||||||
if (this->tls->get_version_max(this->tls) < TLS_1_3)
|
if (this->tls->get_version_max(this->tls) < TLS_1_3)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user