aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/ksutil.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-03-16 23:46:07 +0000
committerDavid Shaw <[email protected]>2005-03-16 23:46:07 +0000
commit4f347281a9047106fa4516b191be99248761fe67 (patch)
tree59ee60580852f401e5aa983d088ea73a92a1e1ab /keyserver/ksutil.h
parent(parse_ccid_descriptor): Make SCM workaround (diff)
downloadgnupg-4f347281a9047106fa4516b191be99248761fe67.tar.gz
gnupg-4f347281a9047106fa4516b191be99248761fe67.zip
* ksutil.h, ksutil.c (ks_action_to_string): New. (free_ks_options): Only
free if options exist.
Diffstat (limited to '')
-rw-r--r--keyserver/ksutil.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/keyserver/ksutil.h b/keyserver/ksutil.h
index 8559d8db8..3ed7b9683 100644
--- a/keyserver/ksutil.h
+++ b/keyserver/ksutil.h
@@ -59,9 +59,11 @@ struct keylist
unsigned int set_timeout(unsigned int seconds);
int register_timeout(void);
+enum ks_action {KS_UNKNOWN=0,KS_GET,KS_SEND,KS_SEARCH};
+
struct ks_options
{
- enum {KS_UNKNOWN,KS_GET,KS_SEND,KS_SEARCH} action;
+ enum ks_action action;
char *host;
char *port;
char *scheme;
@@ -83,5 +85,6 @@ struct ks_options
struct ks_options *init_ks_options(void);
void free_ks_options(struct ks_options *opt);
int parse_ks_options(char *line,struct ks_options *opt);
+const char *ks_action_to_string(enum ks_action action);
#endif /* !_KSUTIL_H_ */