summaryrefslogtreecommitdiffstats
path: root/keyserver/ksutil.c
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2005-08-18 23:14:16 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2005-08-18 23:14:16 +0200
commit70bf6d92046033e3ac66b8daf1f11a6478b0563c (patch)
treeadb4cafce8430c589a9b26a6df702ec177f6c772 /keyserver/ksutil.c
parent* gpgkeys_ldap.c (ldap_quote): \-quote a string for LDAP. (diff)
downloadgnupg2-70bf6d92046033e3ac66b8daf1f11a6478b0563c.tar.xz
gnupg2-70bf6d92046033e3ac66b8daf1f11a6478b0563c.zip
* ksutil.h, ksutil.c (parse_ks_options): New keyserver-option exact-name.
The last of exact-name and exact-email overrides the earlier. * gpgkeys_ldap.c (search_key), gpgkeys_hkp.c (search_key): Use it here to do a name-only search.
Diffstat (limited to 'keyserver/ksutil.c')
-rw-r--r--keyserver/ksutil.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/keyserver/ksutil.c b/keyserver/ksutil.c
index 787841646..287f50224 100644
--- a/keyserver/ksutil.c
+++ b/keyserver/ksutil.c
@@ -304,7 +304,20 @@ parse_ks_options(char *line,struct ks_options *opt)
if(no)
opt->flags.exact_email=0;
else
- opt->flags.exact_email=1;
+ {
+ opt->flags.exact_email=1;
+ opt->flags.exact_name=0;
+ }
+ }
+ else if(strcasecmp(start,"exact-name")==0)
+ {
+ if(no)
+ opt->flags.exact_name=0;
+ else
+ {
+ opt->flags.exact_name=1;
+ opt->flags.exact_email=0;
+ }
}
}