diff options
author | Justus Winter <[email protected]> | 2015-12-04 11:32:20 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2015-12-04 12:02:56 +0000 |
commit | 6d64ef869dfbcb7aaa802b80ed648393147e40d8 (patch) | |
tree | 043dc98eb289f08a36b227ca5bcdd4942c07c960 /dirmngr/ks-engine.h | |
parent | dirmngr: Really search all keyservers for patterns. (diff) | |
download | gnupg-6d64ef869dfbcb7aaa802b80ed648393147e40d8.tar.gz gnupg-6d64ef869dfbcb7aaa802b80ed648393147e40d8.zip |
dirmngr: Stricter handling of http error codes.
* dirmngr/ks-action.c (ks_action_search): Only retry if the keyserver
responded with a '404 Not Found'.
* dirmngr/ks-engine-hkp.c (send_request): Return http status code.
(ks_hkp_search): Likewise.
(ks_hkp_{get,put}): Adapt call to 'send_request'.
* dirmngr/ks-engine.h (ks_hkp_search): Update prototype.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'dirmngr/ks-engine.h')
-rw-r--r-- | dirmngr/ks-engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/ks-engine.h b/dirmngr/ks-engine.h index 6684a12b2..cb48f7f1f 100644 --- a/dirmngr/ks-engine.h +++ b/dirmngr/ks-engine.h @@ -34,7 +34,7 @@ gpg_error_t ks_hkp_mark_host (ctrl_t ctrl, const char *name, int alive); gpg_error_t ks_hkp_print_hosttable (ctrl_t ctrl); gpg_error_t ks_hkp_help (ctrl_t ctrl, parsed_uri_t uri); gpg_error_t ks_hkp_search (ctrl_t ctrl, parsed_uri_t uri, const char *pattern, - estream_t *r_fp); + estream_t *r_fp, unsigned int *r_http_status); gpg_error_t ks_hkp_get (ctrl_t ctrl, parsed_uri_t uri, const char *keyspec, estream_t *r_fp); gpg_error_t ks_hkp_put (ctrl_t ctrl, parsed_uri_t uri, |