mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
wks: Add WKS-Phase headers to the server messages.
* tools/gpg-wks-server.c (send_confirmation_request): Add custom header. (send_congratulation_message): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
aa3f08794b
commit
b30ac663ce
@ -915,6 +915,13 @@ send_confirmation_request (server_ctx_t ctx,
|
||||
err = mime_maker_add_header (mime, "Subject", "Confirm your key publication");
|
||||
if (err)
|
||||
goto leave;
|
||||
|
||||
/* Help Enigmail to identify messages. Note that this is on no way
|
||||
* secured. */
|
||||
err = mime_maker_add_header (mime, "WKS-Phase", "confirm");
|
||||
if (err)
|
||||
goto leave;
|
||||
|
||||
for (sl = opt.extra_headers; sl; sl = sl->next)
|
||||
{
|
||||
err = mime_maker_add_header (mime, sl->d, NULL);
|
||||
@ -1204,6 +1211,9 @@ send_congratulation_message (const char *mbox, const char *keyfile)
|
||||
if (err)
|
||||
goto leave;
|
||||
err = mime_maker_add_header (mime, "Subject", "Your key has been published");
|
||||
if (err)
|
||||
goto leave;
|
||||
err = mime_maker_add_header (mime, "WKS-Phase", "done");
|
||||
if (err)
|
||||
goto leave;
|
||||
for (sl = opt.extra_headers; sl; sl = sl->next)
|
||||
|
Loading…
x
Reference in New Issue
Block a user