mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
* 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.
This commit is contained in:
parent
a659989792
commit
a90637513c
3 changed files with 238 additions and 1 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue