aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/ksutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyserver/ksutil.h')
-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_ */