aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ks-engine-hkp.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2015-12-04 11:08:37 +0000
committerJustus Winter <[email protected]>2015-12-04 11:58:33 +0000
commita8308ba5231682ce7c7d591a17e7e940fbd63189 (patch)
tree6c8238289cd392661ac3c5c0b604659cb08fbff6 /dirmngr/ks-engine-hkp.c
parenttools/gpgtar: Implement symmetric encryption. (diff)
downloadgnupg-a8308ba5231682ce7c7d591a17e7e940fbd63189.tar.gz
gnupg-a8308ba5231682ce7c7d591a17e7e940fbd63189.zip
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 <[email protected]> GnuPG-bug-id: 1221
Diffstat (limited to 'dirmngr/ks-engine-hkp.c')
-rw-r--r--dirmngr/ks-engine-hkp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c
index e458899fd..0f2021cce 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));