117 |
int cancel; |
int cancel; |
118 |
int is_card; |
int is_card; |
119 |
gpgme_ctx_t gpg; |
gpgme_ctx_t gpg; |
120 |
|
struct { |
121 |
|
int sym_algo; |
122 |
|
int s2k_mode; |
123 |
|
int s2k_hash; |
124 |
|
} sym; |
125 |
}; |
}; |
126 |
|
|
127 |
|
|
184 |
int winpt_get_seckey (const char *keyid, struct winpt_key_s *k); |
int winpt_get_seckey (const char *keyid, struct winpt_key_s *k); |
185 |
|
|
186 |
void keycache_reload( HWND dlg ); |
void keycache_reload( HWND dlg ); |
187 |
void keycache_release( void ); |
void keycache_release (int cleanup); |
188 |
gpgme_error_t keycache_update (int is_sec, const char *keyid); |
gpgme_error_t keycache_update (int is_sec, const char *keyid); |
189 |
gpgme_error_t keycache_init( const char *pubring, const char * secring ); |
gpgme_error_t keycache_init( const char *pubring, const char * secring ); |
190 |
void keycache_set_reload( int yes ); |
void keycache_set_reload( int yes ); |
191 |
int keycache_get_reload( void ); |
int keycache_get_reload( void ); |
192 |
gpgme_keycache_t keycache_get_ctx( int _pub ); |
gpg_keycache_t keycache_get_ctx( int _pub ); |
193 |
|
|
194 |
int count_insecure_elgkeys( void ); |
int count_insecure_elgkeys (void); |
195 |
|
|
196 |
int gpgme_encrypt_symmetric( void ); |
int gpg_encrypt_symmetric (void); |
197 |
|
|
|
#define gpgme_enable_logging( ctx ) \ |
|
|
gpgme_control( (ctx), GPGME_CTRL_LOGGING, 1 ) |
|
|
|
|
|
#define gpgme_show_error( hwnd, rc, ctx, title, mode ) \ |
|
|
do { \ |
|
|
if( (rc) == GPGME_Internal_GPG_Problem && ctx ) { \ |
|
|
char * strerr = gpgme_get_logging( (ctx) ); \ |
|
|
msg_box( (hwnd), (strerr)? (strerr) : \ |
|
|
_("No GPG error description available."), title, mode );\ |
|
|
safe_free( strerr ); \ |
|
|
} \ |
|
|
else { \ |
|
|
msg_box( (hwnd), gpgme_strerror( (rc) ), \ |
|
|
title, mode ); \ |
|
|
} \ |
|
|
} while ( 0 ) |
|
198 |
|
|
199 |
/*-- wptGPGParser.cpp --*/ |
/*-- wptGPGParser.cpp --*/ |
200 |
/* find */ |
/* find */ |
234 |
char * get_key_userid (const char *keyid); |
char * get_key_userid (const char *keyid); |
235 |
int check_passwd_quality (const char *pass, int strict); |
int check_passwd_quality (const char *pass, int strict); |
236 |
|
|
237 |
|
/*-- wptGPGUtil.cpp --*/ |
238 |
|
gpgme_error_t gpg_rebuild_cache (char **r_inf); |
239 |
|
gpgme_error_t gpg_get_version (char **r_inf); |
240 |
|
void gpg_set_debug_mode (int val); |
241 |
|
gpgme_error_t gpg_export_seckey (const char *keyid, const char *outfile); |
242 |
|
gpgme_error_t gpg_manage_ownertrust (char **data, int export); |
243 |
|
|
244 |
|
char* generate_revoc_input (int code, const char *cmt, const char *pass); |
245 |
|
gpgme_error_t gpg_revoke_key (const char *inp_data, |
246 |
|
const char *keyid, |
247 |
|
char **r_revcert); |
248 |
|
gpgme_error_t gpg_decode_c_string (const char *src, char **destp, size_t len); |
249 |
|
gpgme_error_t gpg_import_key_list (const char *fname, char **r_out); |
250 |
|
|
251 |
#endif /* WPT_GPG_H */ |
#endif /* WPT_GPG_H */ |