Test that EVP_PKEY_set1_DH() correctly identifies the DH type
authorMatt Caswell <matt@openssl.org>
Mon, 9 Dec 2019 12:03:02 +0000 (12:03 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 16 Dec 2019 14:35:04 +0000 (14:35 +0000)
commit517f24130e83b9b3c2262758f34a7c09a7f63089
treef65939038bb0033af2bb63503a87c100c28ebd19
parente6d06e11e9cea84e41b0b68f63dacb4d4db356cc
Test that EVP_PKEY_set1_DH() correctly identifies the DH type

Provide a test to check tat when we assign a DH object we know whether
we are dealing with PKCS#3 or X9.42 DH keys.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10593)

(cherry picked from commit e295de1d8433ed07092845cb6c56aa424ff35c6d)
test/evp_extra_test.c