1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Make HKP kyeserver 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.
This commit is contained in:
Werner Koch 2011-11-24 15:48:24 +01:00
parent b342a5523e
commit cc7cc2b469
6 changed files with 20 additions and 11 deletions

View file

@ -693,11 +693,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;
@ -730,7 +729,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;