diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-08-29 16:58:20 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-08-29 16:58:20 +0000 |
commit | c2be7382fe65d0a9797a9b877dd1b9dcf1a4e672 (patch) | |
tree | d77a35b2c242cfa40cafd9adf95ca85b48a9173b /lib/libcrypto/rsa/rsa_ameth.c | |
parent | 6847f570655a2ed53cc8f96ed118db3ddaccab58 (diff) |
Remove the pkey_{,public_,param_}check() handlers
This disables the EVP_PKEY_*check() API and makes it fail (more precisely
indicate lack of support) on all key types.
This is an intermediate step to full removal.
Removal is ok beck jsing
Diffstat (limited to 'lib/libcrypto/rsa/rsa_ameth.c')
-rw-r--r-- | lib/libcrypto/rsa/rsa_ameth.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/libcrypto/rsa/rsa_ameth.c b/lib/libcrypto/rsa/rsa_ameth.c index d7ce9317338..eb5d599bf07 100644 --- a/lib/libcrypto/rsa/rsa_ameth.c +++ b/lib/libcrypto/rsa/rsa_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_ameth.c,v 1.59 2024/08/28 07:15:04 tb Exp $ */ +/* $OpenBSD: rsa_ameth.c,v 1.60 2024/08/29 16:58:19 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -1082,12 +1082,6 @@ rsa_item_sign(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, return 2; } -static int -rsa_pkey_check(const EVP_PKEY *pkey) -{ - return RSA_check_key(pkey->pkey.rsa); -} - #ifndef OPENSSL_NO_CMS static RSA_OAEP_PARAMS * rsa_oaep_decode(const X509_ALGOR *alg) @@ -1235,16 +1229,12 @@ const EVP_PKEY_ASN1_METHOD rsa_asn1_meth = { .old_priv_encode = old_rsa_priv_encode, .item_verify = rsa_item_verify, .item_sign = rsa_item_sign, - - .pkey_check = rsa_pkey_check, }; const EVP_PKEY_ASN1_METHOD rsa2_asn1_meth = { .base_method = &rsa_asn1_meth, .pkey_id = EVP_PKEY_RSA2, .pkey_flags = ASN1_PKEY_ALIAS, - - .pkey_check = rsa_pkey_check, }; const EVP_PKEY_ASN1_METHOD rsa_pss_asn1_meth = { |