diff options
author | Matt Caswell <matt@openssl.org> | 2021-04-08 16:22:51 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-04-12 11:47:24 +0100 |
commit | 28fd8953059fe7d9acd57ef6620457cb41a80509 (patch) | |
tree | d49f6c4d9d7ee3f8d3203f296caafe5e5c0b0bdd /test/ecdsatest.c | |
parent | 6878f4300213cfd7d4f01e26a8b97f70344da100 (diff) |
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)
Diffstat (limited to 'test/ecdsatest.c')
-rw-r--r-- | test/ecdsatest.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/ecdsatest.c b/test/ecdsatest.c index 2cd7b970a2..66ab2bc930 100644 --- a/test/ecdsatest.c +++ b/test/ecdsatest.c @@ -243,18 +243,6 @@ static int test_builtin(int n, int as) temp = ECDSA_size(eckey); - /* - * |as| indicates how we want to treat the key, i.e. what sort of - * computation we want to do with it. The two choices are the key - * types EVP_PKEY_EC and EVP_PKEY_SM2. It's perfectly possible to - * switch back and forth between those two key types, regardless of - * curve, even though the default is to have EVP_PKEY_SM2 for the - * SM2 curve and EVP_PKEY_EC for all other curves. - */ - if (!TEST_true(EVP_PKEY_set_alias_type(pkey, as)) - || !TEST_true(EVP_PKEY_set_alias_type(pkey_neg, as))) - goto err; - if (!TEST_int_ge(temp, 0) || !TEST_ptr(sig = OPENSSL_malloc(sig_len = (size_t)temp)) /* create a signature */ |