166 |
|
|
167 |
void keycache_reload( HWND dlg ); |
void keycache_reload( HWND dlg ); |
168 |
void keycache_release( void ); |
void keycache_release( void ); |
169 |
|
gpgme_error_t keycache_update (int is_sec, const char *keyid); |
170 |
gpgme_error_t keycache_init( const char *pubring, const char * secring ); |
gpgme_error_t keycache_init( const char *pubring, const char * secring ); |
171 |
void keycache_set_reload( int yes ); |
void keycache_set_reload( int yes ); |
172 |
int keycache_get_reload( void ); |
int keycache_get_reload( void ); |
181 |
|
|
182 |
#define gpgme_show_error( hwnd, rc, ctx, title, mode ) \ |
#define gpgme_show_error( hwnd, rc, ctx, title, mode ) \ |
183 |
do { \ |
do { \ |
184 |
if( (rc) == GPGME_Interal_GPG_Problem && ctx ) { \ |
if( (rc) == GPGME_Internal_GPG_Problem && ctx ) { \ |
185 |
char * strerr = gpgme_get_logging( (ctx) ); \ |
char * strerr = gpgme_get_logging( (ctx) ); \ |
186 |
msg_box( (hwnd), (strerr)? (strerr) : \ |
msg_box( (hwnd), (strerr)? (strerr) : \ |
187 |
_("No GPG error description available."), title, mode );\ |
_("No GPG error description available."), title, mode );\ |
215 |
void release_group( gpg_group_t grp ); |
void release_group( gpg_group_t grp ); |
216 |
|
|
217 |
/*-- wptPassphraseCB.cpp --*/ |
/*-- wptPassphraseCB.cpp --*/ |
218 |
void set_gpg_passphrase_cb( gpgme_ctx_t c, passphrase_cb_s * ctx, int cmd, |
enum { |
219 |
HWND hwnd, const char * title ); |
PASSDLG_REPEAT = 0, |
220 |
char * request_passphrase( const char * title, int init, int * ret_cancel ); |
PASSDLG_INIT = 1, |
221 |
char * request_passphrase2 (const char * title, int * ret_cancel); |
PASSDLG_STRICT = 2 |
222 |
const char * passphrase_cb( void * opaque, const char * desc, void * r_hd ); |
}; |
223 |
char * get_key_userid( const char * keyid ); |
|
224 |
|
void set_gpg_passphrase_cb (gpgme_ctx_t c, passphrase_cb_s * ctx, int cmd, |
225 |
|
HWND hwnd, const char *title); |
226 |
|
char * request_passphrase (const char *title, int flags, int *ret_cancel); |
227 |
|
char * request_passphrase2 (const char *title, int flags, int *ret_cancel); |
228 |
|
const char * passphrase_cb (void *opaque, const char * desc, void *r_hd); |
229 |
|
char * get_key_userid (const char *keyid); |
230 |
|
int check_passwd_quality (const char *pass, int strict); |
231 |
|
|
232 |
#endif /* WPT_GPG_H */ |
#endif /* WPT_GPG_H */ |