diff options
author | David Shaw <dshaw@jabberwocky.com> | 2005-12-23 21:51:48 +0100 |
---|---|---|
committer | David Shaw <dshaw@jabberwocky.com> | 2005-12-23 21:51:48 +0100 |
commit | da9a10d2b040ba99cb0f4fab2acb19b7ec662637 (patch) | |
tree | bfa496982cb80ba5176171ab8eaaab5fc5aadf21 /keyserver/ksutil.c | |
parent | New code to do DNS CERT queries. (diff) | |
download | gnupg2-da9a10d2b040ba99cb0f4fab2acb19b7ec662637.tar.xz gnupg2-da9a10d2b040ba99cb0f4fab2acb19b7ec662637.zip |
* ksutil.h, ksutil.c (parse_ks_options): New keyserver command "getname".
* gpgkeys_hkp.c (main, get_name), gpgkeys_ldap.c (main, get_name): Use it
here to do direct name (rather than key ID) fetches.
Diffstat (limited to 'keyserver/ksutil.c')
-rw-r--r-- | keyserver/ksutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/keyserver/ksutil.c b/keyserver/ksutil.c index 8ea2a1ab4..8df684ed9 100644 --- a/keyserver/ksutil.c +++ b/keyserver/ksutil.c @@ -140,6 +140,8 @@ parse_ks_options(char *line,struct ks_options *opt) if(strcasecmp(command,"get")==0) opt->action=KS_GET; + else if(strcasecmp(command,"getname")==0) + opt->action=KS_GETNAME; else if(strcasecmp(command,"send")==0) opt->action=KS_SEND; else if(strcasecmp(command,"search")==0) @@ -311,6 +313,7 @@ ks_action_to_string(enum ks_action action) { case KS_UNKNOWN: return "UNKNOWN"; case KS_GET: return "GET"; + case KS_GETNAME: return "GETNAME"; case KS_SEND: return "SEND"; case KS_SEARCH: return "SEARCH"; } |