core: Implement recpstring option parsing for gpgsm.
authorWerner Koch <wk@gnupg.org>
Tue, 4 Jun 2019 07:29:09 +0000 (09:29 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 4 Jun 2019 07:29:09 +0000 (09:29 +0200)
commit1024884e07f750ce781fa74dffa62e126bdda622
tree3e0bb451d1445852c64bdbd25c044e975b2e5108
parente9ca36f876e1066227668981f5a9e1a7f1031d9e
core: Implement recpstring option parsing for gpgsm.

* src/engine-gpg.c (append_args_from_recipients_string): Detect bad
options.
* src/engine-gpgsm.c (set_recipients_from_string): Implement option
parsing.
--

The only option we actually implement is "--" but the code layout is
now very simlar to engine-gpg and can easily be extended if ever
needed.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/engine-gpg.c
src/engine-gpgsm.c