mirror of https://github.com/openssl/openssl
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:
parent
fe2a7341b5
commit
3b1c0c8f3c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue