When asked if an ECX key has parameters we should answer "true"
authorMatt Caswell <matt@openssl.org>
Thu, 21 May 2020 10:36:21 +0000 (11:36 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 5 Jun 2020 10:04:11 +0000 (11:04 +0100)
commit7fa2b2673edd684ceb94ff19346f08121da9774f
treeccddae3a0c0d7ad01a93a4fd7d1cdfdb69e506b7
parent11391da217b5d07dd30dd4c1890b5320fa56be18
When asked if an ECX key has parameters we should answer "true"

An ECX key doesn't have any parameters associated with it. Therefore it
always has all the parameters it needs, and the "has" function should
return 1 if asked about parameters. Without this
EVP_PKEY_missing_parameters() fails for ECX keys.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11898)
providers/implementations/keymgmt/ecx_kmgmt.c
test/evp_pkey_provided_test.c