Refactor CRMF_poposigningkey_init() to work with provider keys
authorRichard Levitte <levitte@openssl.org>
Wed, 19 Feb 2020 06:05:52 +0000 (07:05 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 9 Mar 2020 05:22:52 +0000 (06:22 +0100)
commitdb4b3d8392fc1c3a1033045efdda222fd76c26b2
tree14e908e4043ee1c0d5bf114cd790caece86360ed
parenta08e2bf548507443ce9a020dd4cc68a57c27a8b7
Refactor CRMF_poposigningkey_init() to work with provider keys

The code in this function was almost entirely a copy of the
functionality in ASN1_item_sign(), so it gets refactored to actually
call ASN1_item_sign(), and thereby automatically gets support for
EVP_PKEYs with only provider side keys.

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/11126)
crypto/crmf/crmf_lib.c