summaryrefslogtreecommitdiffstats
path: root/keyserver/ksutil.c
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2005-08-18 06:17:20 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2005-08-18 06:17:20 +0200
commite9b444a9d09de8ccbe0295dae33e6abcf8e79b77 (patch)
treeebf51c02682e8d3af3ec2077c10f40d181bc8931 /keyserver/ksutil.c
parentExperimental code to improve AES performance. Got about 25% on ia32. (diff)
downloadgnupg2-e9b444a9d09de8ccbe0295dae33e6abcf8e79b77.tar.xz
gnupg2-e9b444a9d09de8ccbe0295dae33e6abcf8e79b77.zip
* ksutil.h, ksutil.c (parse_ks_options): New keyserver-option
exact-email. * gpgkeys_ldap.c (search_key), gpgkeys_hkp.c (search_key): Use it here to do an email-only search.
Diffstat (limited to 'keyserver/ksutil.c')
-rw-r--r--keyserver/ksutil.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/keyserver/ksutil.c b/keyserver/ksutil.c
index fd28b0390..787841646 100644
--- a/keyserver/ksutil.c
+++ b/keyserver/ksutil.c
@@ -298,6 +298,14 @@ parse_ks_options(char *line,struct ks_options *opt)
return KEYSERVER_NO_MEMORY;
}
}
+ else if(strcasecmp(start,"exact-email")==0
+ || strcasecmp(start,"exact-mail")==0)
+ {
+ if(no)
+ opt->flags.exact_email=0;
+ else
+ opt->flags.exact_email=1;
+ }
}
return -1;