diff options
author | Werner Koch <wk@gnupg.org> | 2016-07-12 17:27:15 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-07-12 18:18:19 +0200 |
commit | 5de41c4ecef32add89044b8a550a47cce8c6d61e (patch) | |
tree | c8022af01bd76aaf1a0d4fbc60e6a3776618e59a /tools/gpg-wks-server.c | |
parent | wks: Also create DANE record. (diff) | |
download | gnupg2-5de41c4ecef32add89044b8a550a47cce8c6d61e.tar.xz gnupg2-5de41c4ecef32add89044b8a550a47cce8c6d61e.zip |
wks: Try to send an encrypted confirmation back.
* tools/gpg-wks-client.c (encrypt_response_status_cb): New.
(encrypt_response): New.
(send_confirmation_response): Encrypt the response.
* tools/gpg-wks-server.c (send_confirmation_request): Use freeing of
BODY and BODYENC.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tools/gpg-wks-server.c')
-rw-r--r-- | tools/gpg-wks-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpg-wks-server.c b/tools/gpg-wks-server.c index 88313eca9..de1be6a65 100644 --- a/tools/gpg-wks-server.c +++ b/tools/gpg-wks-server.c @@ -904,8 +904,8 @@ send_confirmation_request (server_ctx_t ctx, leave: mime_maker_release (mime); - xfree (bodyenc); - xfree (body); + es_fclose (bodyenc); + es_fclose (body); xfree (from_buffer); return err; } |