From: Tomas Mraz Date: Fri, 13 Jan 2023 13:48:52 +0000 (+0100) Subject: pkey: Imply public check if -pubin is specified X-Git-Tag: openssl-3.2.0-alpha1~1448 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b1c0c8f3cd66e80f81a9b7c9810bdada39363f2;p=thirdparty%2Fopenssl.git pkey: Imply public check if -pubin is specified Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/20044) --- diff --git a/apps/pkey.c b/apps/pkey.c index 9e032aa8f44..f280846fa95 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);