diff options
author | Richard Levitte <levitte@openssl.org> | 2020-09-18 20:46:08 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-09-25 11:07:42 +0200 |
commit | 14711fffbf2726f94d6a05d8f9cbae7fe7a4bc09 (patch) | |
tree | 1553192f5f2653412d3b6601db8fded306d2a15d /doc | |
parent | 294e380220c5ab83c05f9c501120a6296f88abdc (diff) |
EVP: Enforce that EVP_PKEY_set_alias_type() only works with legacy keys
This also deprecates the function, as it is not necessary any more,
and should fall out of use.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12920)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/EVP_PKEY_set1_RSA.pod | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/man3/EVP_PKEY_set1_RSA.pod b/doc/man3/EVP_PKEY_set1_RSA.pod index 1a30b068cf..d4ab126e0a 100644 --- a/doc/man3/EVP_PKEY_set1_RSA.pod +++ b/doc/man3/EVP_PKEY_set1_RSA.pod @@ -43,11 +43,16 @@ EVP_PKEY_set1_engine, EVP_PKEY_get0_engine - EVP_PKEY assignment functions int EVP_PKEY_id(const EVP_PKEY *pkey); int EVP_PKEY_base_id(const EVP_PKEY *pkey); int EVP_PKEY_type(int type); - int EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type); ENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey); int EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *engine); +Deprecated since OpenSSL 3.0, can be hidden entirely by defining +B<OPENSSL_API_COMPAT> with a suitable version value, see +L<openssl_user_macros(7)>: + + int EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type); + =head1 DESCRIPTION EVP_PKEY_set1_RSA(), EVP_PKEY_set1_DSA(), EVP_PKEY_set1_DH() and @@ -163,6 +168,10 @@ algorithms with EVP_PKEY_set_alias_type: L<EVP_PKEY_new(3)>, L<SM2(7)> +=head1 HISTORY + +EVP_PKEY_set_alias_type() was deprecated in OpenSSL 3.0. + =head1 COPYRIGHT Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved. |