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:36:13 +0000 (15:36 +0000)
commit40b64553f577716cb4898895f5fd4530a6266c75
tree0d048e71dc3bf3857d4254fc48182c74fe3bc8fd
parent522b11e969cbdc82eca369512275f227080a86fa
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)
apps/pkcs12.c
doc/man1/pkcs12.pod