mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
c619035d9c
commit
7705f310f1
7 changed files with 279 additions and 17 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue