]> git.ipfire.org Git - thirdparty/openssl.git/commit
ec_kmgmt.c: Do not crash when getting OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY
authorTomas Mraz <tomas@openssl.org>
Thu, 28 Jul 2022 11:57:02 +0000 (13:57 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 18 Aug 2022 08:20:03 +0000 (10:20 +0200)
commitb5db237def7e22ccea1a540ec777045b3ce4600e
treeb9923424802985fe6e9eb589779a9c2382b5c1aa
parent2c05607cd91fc5aab6d61f0324104d63a091d705
ec_kmgmt.c: Do not crash when getting OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY

If the public key is not set on the key, return error instead of crash.

Fixes #18495

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18902)
providers/implementations/keymgmt/ec_kmgmt.c