summaryrefslogtreecommitdiffstats
path: root/apps/pkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pkey.c')
-rw-r--r--apps/pkey.c2
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);