diff options
author | Werner Koch <wk@gnupg.org> | 2016-07-03 00:41:30 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-07-03 00:41:30 +0200 |
commit | 7705f310f1406fe49b45e16c371b09863313f24f (patch) | |
tree | 1b49d277ef1b6dd05a4c03f9cc73a0a35eea7cdb /tools/Makefile.am | |
parent | tools: Add options to gpg-wks-server. (diff) | |
download | gnupg2-7705f310f1406fe49b45e16c371b09863313f24f.tar.xz gnupg2-7705f310f1406fe49b45e16c371b09863313f24f.zip |
tools: Call sendmail directly from the wks tools.
* tools/send-mail.c, tools/send-mail.h: New.
* tools/wks-util.c: New.
* tools/Makefile.am (gpg_wks_server_SOURCES): Add them.
(gpg_wks_client_SOURCES): Ditto.
* tools/gpg-wks.h (opt): Add fields use_sendmail and output.
* tools/gpg-wks-client.c: Add options --send and --output. Rename
command --send to --create.
(command_send, send_confirmation_response): Output via wks_send_mime.
* tools/gpg-wks-server.c: Add options --send and --output.
(send_confirmation_request): Output via wks_send_mime.
(check_and_publish): Add hack for name-value bug.
--
With this code, a dedicated user on the server along with a procmail
script, it was possible to run a basic test.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r-- | tools/Makefile.am | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am index 362ee1faf..7bc14568a 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -147,21 +147,25 @@ gpgtar_LDADD = $(libcommon) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \ gpg_wks_server_SOURCES = \ gpg-wks-server.c \ gpg-wks.h \ + wks-util.c \ wks-receive.c \ rfc822parse.c rfc822parse.h \ mime-parser.c mime-parser.h \ - mime-maker.h mime-maker.c + mime-maker.c mime-maker.h \ + send-mail.c send-mail.h gpg_wks_server_CFLAGS = $(GPG_ERROR_CFLAGS) gpg_wks_server_LDADD = $(libcommon) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) gpg_wks_client_SOURCES = \ gpg-wks-client.c \ - gpg-wks.h \ + gpg-wks.h \ + wks-util.c \ wks-receive.c \ rfc822parse.c rfc822parse.h \ mime-parser.c mime-parser.h \ - mime-maker.h mime-maker.c \ + mime-maker.h mime-maker.c \ + send-mail.c send-mail.h \ call-dirmngr.c call-dirmngr.h gpg_wks_client_CFLAGS = $(LIBASSUAN_CFLAGS) $(GPG_ERROR_CFLAGS) |