summaryrefslogtreecommitdiffstats
path: root/providers/implementations/serializers
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-07-20 16:09:47 +0200
committerRichard Levitte <levitte@openssl.org>2020-07-27 12:15:29 +0200
commit456b3b97a489d4be42f4258cb65bf76dfd8bab00 (patch)
tree378dea24d9c3249170ad419d63d95f4633369b98 /providers/implementations/serializers
parent51d9ac870acda2c818ce19c1174ed85f9a2f6eb7 (diff)
EVP, PROV: Add misc missing bits for RSA-PSS
- EVP_PKEY_is_a() didn't recognise "RSA-PSS" for legacy keys. - The RSA-PSS keymgmt didn't have a OSSL_FUNC_keymgmt_match() function. - ossl_prov_prepare_rsa_params() didn't return 1 for unrestricted RSA-PSS params. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12492)
Diffstat (limited to 'providers/implementations/serializers')
-rw-r--r--providers/implementations/serializers/serializer_rsa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/implementations/serializers/serializer_rsa.c b/providers/implementations/serializers/serializer_rsa.c
index d0cea458d1..d2a5459828 100644
--- a/providers/implementations/serializers/serializer_rsa.c
+++ b/providers/implementations/serializers/serializer_rsa.c
@@ -199,6 +199,7 @@ int ossl_prov_prepare_rsa_params(const void *rsa, int nid,
case RSA_FLAG_TYPE_RSASSAPSS:
if (rsa_pss_params_30_is_unrestricted(pss)) {
*pstrtype = V_ASN1_UNDEF;
+ return 1;
} else {
ASN1_STRING *astr = NULL;
WPACKET pkt;