Remove the function EVP_PKEY_set_alias_type
authorMatt Caswell <matt@openssl.org>
Thu, 8 Apr 2021 15:22:51 +0000 (16:22 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 12 Apr 2021 10:47:24 +0000 (11:47 +0100)
commit28fd8953059fe7d9acd57ef6620457cb41a80509
treed49f6c4d9d7ee3f8d3203f296caafe5e5c0b0bdd
parent6878f4300213cfd7d4f01e26a8b97f70344da100
Remove the function EVP_PKEY_set_alias_type

OTC recently voted that EVP_PKEY types will be immutable in 3.0. This
means that EVP_PKEY_set_alias_type can no longer work and should be
removed entirely (applications will need to be rewritten not to use it).

It was primarily used for SM2 which no longer needs this call.
Applications should generate SM2 keys directly (without going via an EC
key first), or otherwise when loading keys they should automatically be
detected as SM2 keys.

Fixes #14379

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14803)
CHANGES.md
crypto/evp/p_lib.c
doc/man3/EVP_PKEY_set1_RSA.pod
include/openssl/evp.h
test/ecdsatest.c
util/libcrypto.num