diff options
author | Tomas Mraz <tomas@openssl.org> | 2023-01-13 14:48:52 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-01-17 12:18:50 +0100 |
commit | 3b1c0c8f3cd66e80f81a9b7c9810bdada39363f2 (patch) | |
tree | e3e5704541877db5faef6b79b9c6980590c8d6f3 /apps/pkey.c | |
parent | fe2a7341b50450dc6acd6f8a17d4420511a5aefe (diff) |
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)
Diffstat (limited to 'apps/pkey.c')
-rw-r--r-- | apps/pkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pkey.c b/apps/pkey.c index 9e032aa8f4..f280846fa9 100644 --- a/apps/pkey.c +++ b/apps/pkey.c @@ -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); |