aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/ksutil.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-03-16 15:17:03 +0000
committerDavid Shaw <[email protected]>2005-03-16 15:17:03 +0000
commita90637513cb54c0691f02d3eb781065827fa3891 (patch)
treef948fab01f13fa5a209556578d91a0a03013f638 /keyserver/ksutil.h
parentPost release preparations (diff)
downloadgnupg-a90637513cb54c0691f02d3eb781065827fa3891.tar.gz
gnupg-a90637513cb54c0691f02d3eb781065827fa3891.zip
* ksutil.h, ksutil.c (init_ks_options, free_ks_options,
parse_ks_options): Pull a lot of duplicated code into a single options parser for all keyserver helpers.
Diffstat (limited to '')
-rw-r--r--keyserver/ksutil.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/keyserver/ksutil.h b/keyserver/ksutil.h
index e10d1fbc7..8559d8db8 100644
--- a/keyserver/ksutil.h
+++ b/keyserver/ksutil.h
@@ -59,4 +59,29 @@ struct keylist
unsigned int set_timeout(unsigned int seconds);
int register_timeout(void);
+struct ks_options
+{
+ enum {KS_UNKNOWN,KS_GET,KS_SEND,KS_SEARCH} action;
+ char *host;
+ char *port;
+ char *scheme;
+ char *auth;
+ char *path;
+ struct
+ {
+ unsigned int include_disabled:1;
+ unsigned int include_revoked:1;
+ unsigned int include_subkeys:1;
+ unsigned int check_cert:1;
+ } flags;
+ unsigned int verbose;
+ unsigned int debug;
+ unsigned int timeout;
+ char *ca_cert_file;
+};
+
+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);
+
#endif /* !_KSUTIL_H_ */