recognise X9.42 DH certificates on servers

This commit is contained in:
Dr. Stephen Henson
2012-04-18 17:03:29 +00:00
parent aa09c2c631
commit b214184160
2 changed files with 2 additions and 2 deletions

View File

@@ -524,7 +524,7 @@ int ssl_cert_type(X509 *x, EVP_PKEY *pkey)
{
ret = SSL_PKEY_GOST01;
}
else if (x && i == EVP_PKEY_DH)
else if (x && (i == EVP_PKEY_DH || i == EVP_PKEY_DHX))
{
/* For DH two cases: DH certificate signed with RSA and
* DH certificate signed with DSA.