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:20:08 +0100 |
commit | 46d4cb4d8f15e444bab10904968fdff4d0bc5ec5 (patch) | |
tree | 07559e832a48059bd5fb2bca95e0ff561f66274f /apps | |
parent | 5701ead8f201265ca3d8ac1d558d16ca34a0c93e (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)
(cherry picked from commit 3b1c0c8f3cd66e80f81a9b7c9810bdada39363f2)
Diffstat (limited to 'apps')
-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 fb3899b08e..34e28344cb 100644 --- a/apps/pkey.c +++ b/apps/pkey.c @@ -250,7 +250,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); |