25 |
KC_FLAG_UPD = 2 |
KC_FLAG_UPD = 2 |
26 |
}; |
}; |
27 |
|
|
28 |
|
/* key specifc attributes. */ |
29 |
|
enum keycache_attr_t { |
30 |
|
KC_ATTR_PREFSYM = 11, |
31 |
|
KC_ATTR_PREFKSERV = 24 |
32 |
|
}; |
33 |
|
|
34 |
|
|
35 |
struct keycache_s { |
struct keycache_s { |
36 |
struct keycache_s *next; |
struct keycache_s *next; |
37 |
int flags; |
int flags; |
50 |
gpgme_validity_t validity; /* attribute id validity. */ |
gpgme_validity_t validity; /* attribute id validity. */ |
51 |
} attrib; |
} attrib; |
52 |
unsigned char *sym_prefs;/* symmetric cipher preferences. */ |
unsigned char *sym_prefs;/* symmetric cipher preferences. */ |
53 |
|
char *pref_keyserver; /* if != NULL preferred keyserver. */ |
54 |
char *card_type; /* if != NULL key stored on smart card. */ |
char *card_type; /* if != NULL key stored on smart card. */ |
55 |
}; |
}; |
56 |
|
|
103 |
const char *pattern); |
const char *pattern); |
104 |
gpgme_error_t gpg_keycache_get_default_key (gpg_keycache_t ctx, |
gpgme_error_t gpg_keycache_get_default_key (gpg_keycache_t ctx, |
105 |
gpgme_key_t *r_key); |
gpgme_key_t *r_key); |
106 |
|
gpgme_error_t gpg_keycache_update_attr (struct keycache_s *item, |
107 |
|
int attr, int force); |
108 |
|
|
109 |
#endif /*WPT_KEYCACHE_H*/ |
#endif /*WPT_KEYCACHE_H*/ |