diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-04-18 17:03:45 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-04-18 17:03:45 +0000 |
commit | b583ebb7ddf15d673ff9a918818acb584e17ea6a (patch) | |
tree | 1ea38ad417705f9894fde63da032dbf33dc4143a /crypto/evp | |
parent | f897fe4146bee5b424635289d323f6c990bdccd7 (diff) |
recognise X9.42 DH certificates on servers
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/p_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index e26ccd0d08..109188c45b 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -348,7 +348,7 @@ int EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key) DH *EVP_PKEY_get1_DH(EVP_PKEY *pkey) { - if(pkey->type != EVP_PKEY_DH) { + if(pkey->type != EVP_PKEY_DH && pkey->type != EVP_PKEY_DHX) { EVPerr(EVP_F_EVP_PKEY_GET1_DH, EVP_R_EXPECTING_A_DH_KEY); return NULL; } |