summaryrefslogtreecommitdiffstats
path: root/dirmngr/certcache.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-11-24 15:48:24 +0100
committerWerner Koch <wk@gnupg.org>2011-11-24 16:15:08 +0100
commit231d27e0fec905be52d679961332947c3331f15f (patch)
treed04cff926996d2be6b1a58c3d696ab3f75fc97c6 /dirmngr/certcache.c
parentUpdated the German translation. (diff)
downloadgnupg2-231d27e0fec905be52d679961332947c3331f15f.tar.xz
gnupg2-231d27e0fec905be52d679961332947c3331f15f.zip
Make HKP keyserver engine work again.
We had some debug code here which prevented it from working. The host selection code still needs a review! * ks-engine-http.c (ks_http_help): Do not print help for hkp. * ks-engine-hkp.c (ks_hkp_help): Print help only for hkp. (send_request): Remove test code. (map_host): Use xtrymalloc. * certcache.c (classify_pattern): Remove unused variable and make explicit substring search work.
Diffstat (limited to 'dirmngr/certcache.c')
-rw-r--r--dirmngr/certcache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dirmngr/certcache.c b/dirmngr/certcache.c
index 3ada60dfe..a8b84e6e3 100644
--- a/dirmngr/certcache.c
+++ b/dirmngr/certcache.c
@@ -681,11 +681,10 @@ get_cert_bysubject (const char *subject_dn, unsigned int seq)
static enum pattern_class
classify_pattern (const char *pattern, size_t *r_offset, size_t *r_sn_offset)
{
- enum pattern_class result = PATTERN_UNKNOWN;
+ enum pattern_class result;
const char *s;
int hexprefix = 0;
int hexlength;
- int mode = 0;
*r_offset = *r_sn_offset = 0;
@@ -718,7 +717,7 @@ classify_pattern (const char *pattern, size_t *r_offset, size_t *r_sn_offset)
break;
case '*': /* Case insensitive substring search. */
- mode = PATTERN_SUBSTR;
+ result = PATTERN_SUBSTR;
s++;
break;