* server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
authorWerner Koch <wk@gnupg.org>
Wed, 17 Dec 2003 17:12:14 +0000 (17:12 +0000)
committerWerner Koch <wk@gnupg.org>
Wed, 17 Dec 2003 17:12:14 +0000 (17:12 +0000)
commit711c4853d63a9eb4bacac3f540dfcbb71fba2a51
tree7924976f43ba3c14386093b85425c21f9e56b86f
parentaac9cea6daaabe8179a1efb8c7fb1d76f73273c9
* server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
(cmd_encrypt): Add all enrypt-to marked certs to the list.
* encrypt.c (gpgsm_encrypt): Check that real recipients are
available.
* gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
options work.  Pass the list of recients to gpgsm_server.
* gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
(opt): Add NO_ENCRYPT_TO.
* certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
Changed all callers and ignore duplicate entries.
(is_cert_in_certlist): New.
(gpgsm_add_cert_to_certlist): New.
NEWS
sm/ChangeLog
sm/certlist.c
sm/encrypt.c
sm/gpgsm.c
sm/gpgsm.h
sm/server.c