]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/evp/pmeth_lib.c
EVP: Make checks in evp_pkey_ctx_store_cached_data() more restricted
authorRichard Levitte <levitte@openssl.org>
Wed, 10 Feb 2021 17:58:01 +0000 (18:58 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 23 Feb 2021 12:41:48 +0000 (13:41 +0100)
commitbbf4dc96fc4344e333d4e73bc2aba848e5bff84b
treeecf01e948ac1b8abdcc9d886cf6b5d590bad9010
parent13f91a7245d4271486c018b440940a696eaaa12d
EVP: Make checks in evp_pkey_ctx_store_cached_data() more restricted

It would check the keytype and optype before determining if it even
supported the ctrl command number.  This turned out to be disruptive,
so we make it check that it supports the request ctrl command number
first.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13913)
crypto/evp/pmeth_lib.c