summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-09-18 20:46:08 +0200
committerRichard Levitte <levitte@openssl.org>2020-09-25 11:07:42 +0200
commit14711fffbf2726f94d6a05d8f9cbae7fe7a4bc09 (patch)
tree1553192f5f2653412d3b6601db8fded306d2a15d /include
parent294e380220c5ab83c05f9c501120a6296f88abdc (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 'include')
-rw-r--r--include/openssl/evp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h
index ab5ca6b440..2948c2c542 100644
--- a/include/openssl/evp.h
+++ b/include/openssl/evp.h
@@ -1195,7 +1195,7 @@ int EVP_PKEY_can_sign(const EVP_PKEY *pkey);
int EVP_PKEY_set_type(EVP_PKEY *pkey, int type);
int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);
int EVP_PKEY_set_type_by_keymgmt(EVP_PKEY *pkey, EVP_KEYMGMT *keymgmt);
-int EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type);
+DEPRECATEDIN_3_0(int EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type))
# ifndef OPENSSL_NO_ENGINE
int EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e);
ENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey);