[Pkg-gnupg-commit] [gnupg2] 10/159: dirmngr: Handle http status '501 Not Implemented'.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Jan 27 13:23:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit a8308ba5231682ce7c7d591a17e7e940fbd63189
Author: Justus Winter <justus at g10code.com>
Date:   Fri Dec 4 12:08:37 2015 +0100

    dirmngr: Handle http status '501 Not Implemented'.
    
    * dirmngr/ks-engine-hkp.c (send_request): Handle status 501 and return
    GPG_ERR_NOT_IMPLEMENTED.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
    GnuPG-bug-id: 1221
---
 dirmngr/ks-engine-hkp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c
index e458899..0f2021c 100644
--- a/dirmngr/ks-engine-hkp.c
+++ b/dirmngr/ks-engine-hkp.c
@@ -1083,6 +1083,10 @@ send_request (ctrl_t ctrl, const char *request, const char *hostportstr,
       }
       goto leave;
 
+    case 501:
+      err = gpg_error (GPG_ERR_NOT_IMPLEMENTED);
+      goto leave;
+
     default:
       log_error (_("error accessing '%s': http status %u\n"),
                  request, http_get_status_code (http));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list