dirmngr: Stricter handling of http error codes.
authorJustus Winter <justus@g10code.com>
Fri, 4 Dec 2015 11:32:20 +0000 (12:32 +0100)
committerJustus Winter <justus@g10code.com>
Fri, 4 Dec 2015 12:02:56 +0000 (13:02 +0100)
commit6d64ef869dfbcb7aaa802b80ed648393147e40d8
tree043dc98eb289f08a36b227ca5bcdd4942c07c960
parent6ac57a482f7ae02db1bee4e4b861288fc6905adc
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 <justus@g10code.com>
dirmngr/ks-action.c
dirmngr/ks-engine-hkp.c
dirmngr/ks-engine.h