summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Fiala <daniel@openssl.org>2022-03-16 20:30:38 +0100
committerTomas Mraz <tomas@openssl.org>2022-03-22 14:02:49 +0100
commit5d1f357a01f668f708c1abd7567175b4a0f18a38 (patch)
treef472db40423b2f31838c724bfe6f7e7eaac14a9a /apps
parent344c7fb8a83e8eaac2ea01aaa82c7108945c9dc7 (diff)
Make `openssl check -rsa ...` to work for both RSA and RSA-PSS.
Fixes openssl#17167 Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17920)
Diffstat (limited to 'apps')
-rw-r--r--apps/rsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/rsa.c b/apps/rsa.c
index 05a091ce4b..97e9504a00 100644
--- a/apps/rsa.c
+++ b/apps/rsa.c
@@ -257,7 +257,7 @@ int rsa_main(int argc, char **argv)
ERR_print_errors(bio_err);
goto end;
}
- if (!EVP_PKEY_is_a(pkey, "RSA")) {
+ if (!EVP_PKEY_is_a(pkey, "RSA") && !EVP_PKEY_is_a(pkey, "RSA-PSS")) {
BIO_printf(bio_err, "Not an RSA key\n");
goto end;
}