pkey: Imply public check if -pubin is specified

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20044)
This commit is contained in:
Tomas Mraz 2023-01-13 14:48:52 +01:00
parent fe2a7341b5
commit 3b1c0c8f3c
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ int pkey_main(int argc, char **argv)
goto end;
}
if (check)
if (check && !pubin)
r = EVP_PKEY_check(ctx);
else
r = EVP_PKEY_public_check(ctx);