]> git.ipfire.org Git - thirdparty/openssl.git/commit - include/crypto/evp.h
EVP: Add support for delayed EVP_PKEY operation parameters
authorRichard Levitte <levitte@openssl.org>
Wed, 2 Sep 2020 13:54:13 +0000 (15:54 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 8 Sep 2020 10:06:35 +0000 (12:06 +0200)
commit86df26b3943509219057ae87f8764b3c15e0d8b8
tree8e30eef381d0c2a77af161894bb4d9f7d0663b00
parentea0add4a822749d620714a4660eedd86a91e8e1b
EVP: Add support for delayed EVP_PKEY operation parameters

They get called "delayed parameters" because they may make it to the
implementation at a later time than when they're given.

This currently only covers the distinguished ID, as that's the only
EVP_PKEY operation parameter so far that has been possible to give
before the operation has been initialized.

This includes a re-implementation of EVP_PKEY_CTX_set1_id(),
EVP_PKEY_CTX_get1_id(), and EVP_PKEY_CTX_get1_id_len().

Also, the more rigorous controls of keytype and optype are restored.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12789)
crypto/ec/ec_ctrl.c
crypto/evp/m_sigver.c
crypto/evp/pmeth_lib.c
crypto/evp/signature.c
include/crypto/evp.h
include/openssl/core_names.h
include/openssl/ec.h
util/libcrypto.num