Latest update.

This commit is contained in:
2020-05-17 20:27:18 +09:00
parent ad9fce94c2
commit 3a6d64bb68
619 changed files with 13638 additions and 4698 deletions
@@ -322,6 +322,8 @@ static int dh_validate_public(DH *dh)
const BIGNUM *pub_key = NULL;
DH_get0_key(dh, &pub_key, NULL);
if (pub_key == NULL)
return 0;
return DH_check_pub_key_ex(dh, pub_key);
}
@@ -331,6 +333,8 @@ static int dh_validate_private(DH *dh)
const BIGNUM *priv_key = NULL;
DH_get0_key(dh, NULL, &priv_key);
if (priv_key == NULL)
return 0;
return dh_check_priv_key(dh, priv_key, &status);;
}