summaryrefslogtreecommitdiffstats
path: root/apps/rsautl.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/rsautl.c')
-rw-r--r--apps/rsautl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/rsautl.c b/apps/rsautl.c
index 3a58b45800..f8f68d9422 100644
--- a/apps/rsautl.c
+++ b/apps/rsautl.c
@@ -141,7 +141,7 @@ int MAIN(int argc, char **argv)
argv++;
}
- if(need_priv && (key_type == KEY_PRIVKEY)) {
+ if(need_priv && (key_type != KEY_PRIVKEY)) {
BIO_printf(bio_err, "A private key is needed for this operation\n");
goto end;
}