PEM: Unlock MSBLOB and PVK functions from 'no-dsa' and 'no-rc4'
authorRichard Levitte <levitte@openssl.org>
Wed, 9 Dec 2020 16:30:01 +0000 (17:30 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 13 Dec 2020 09:27:31 +0000 (10:27 +0100)
commita158f8cfb9588634831615128a9b9d4b92204cff
tree2943fd013b7efc6e19f0abfcb88d0332bbc662d6
parente841938349a2897def004c9c8cf0131d158a0c29
PEM: Unlock MSBLOB and PVK functions from 'no-dsa' and 'no-rc4'

All these functions are usable with RSA keys, there's no reason why
they should be unaccessible when DSA or RC4 are disabled.

When DSA is disabled, it's not possible to use these functions for
DSA EVP_PKEYs.  That's fine, and supported.

When RC4 is disabled, it's not possible to use these functions to
write encrypted PVK output.  That doesn't even depend on the
definition of OPENSSL_NO_RC4, but if the RC4 algorithm is accessible
via EVP, something that isn't known when building libcrypto.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13648)
crypto/pem/pvkfmt.c
include/crypto/pem.h
include/openssl/pem.h
util/libcrypto.num