aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-wks.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-07-02 22:41:30 +0000
committerWerner Koch <[email protected]>2016-07-02 22:41:30 +0000
commit7705f310f1406fe49b45e16c371b09863313f24f (patch)
tree1b49d277ef1b6dd05a4c03f9cc73a0a35eea7cdb /tools/gpg-wks.h
parenttools: Add options to gpg-wks-server. (diff)
downloadgnupg-7705f310f1406fe49b45e16c371b09863313f24f.tar.gz
gnupg-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 <[email protected]>
Diffstat (limited to 'tools/gpg-wks.h')
-rw-r--r--tools/gpg-wks.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gpg-wks.h b/tools/gpg-wks.h
index 873925c60..be85eecfb 100644
--- a/tools/gpg-wks.h
+++ b/tools/gpg-wks.h
@@ -22,6 +22,7 @@
#include "../common/util.h"
#include "../common/strlist.h"
+#include "mime-maker.h"
/* We keep all global options in the structure OPT. */
struct
@@ -29,6 +30,8 @@ struct
int verbose;
unsigned int debug;
int quiet;
+ int use_sendmail;
+ const char *output;
const char *gpg_program;
const char *directory;
const char *default_from;
@@ -43,6 +46,9 @@ struct
#define DBG_EXTPROG_VALUE 16384 /* debug external program calls */
+/*-- wks-util.c --*/
+gpg_error_t wks_send_mime (mime_maker_t mime);
+
/*-- wks-receive.c --*/
gpg_error_t wks_receive (estream_t fp,
gpg_error_t (*result_cb)(void *opaque,