Complain if -twopass is used incorrectly
authorMatt Caswell <matt@openssl.org>
Tue, 29 Jan 2019 15:04:38 +0000 (15:04 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 30 Jan 2019 15:44:12 +0000 (15:44 +0000)
commitfea9f34a2e9c018430385c9073161b4daa484843
tree3b2af5a988b02eceb314d5001875d2f82a0b410d
parenta6d6d64570fe6bf3078c5bc4a35c1d509ef1ee15
Complain if -twopass is used incorrectly

The option -twopass to the pkcs12 app is ignored if -passin, -passout
or -password is used. We should complain if an attempt is made to use
it in combination with those options.

Fixes #8107

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8114)

(cherry picked from commit 40b64553f577716cb4898895f5fd4530a6266c75)
apps/pkcs12.c
doc/man1/pkcs12.pod