mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
* ksutil.h, ksutil.c (ks_action_to_string): New. (free_ks_options): Only
free if options exist.
This commit is contained in:
parent
8ba895c763
commit
4f347281a9
3 changed files with 31 additions and 13 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue