1 |
/* wptGPG.h - GnuPG interface |
/* wptGPG.h - GnuPG interface |
2 |
* Copyright (C) 2000-2007 Timo Schulz |
* Copyright (C) 2000-2007, 2009 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
109 |
void gnupg_backup_keyrings (int auto_backup, int backup_mode, |
void gnupg_backup_keyrings (int auto_backup, int backup_mode, |
110 |
int include_secr); |
int include_secr); |
111 |
int gnupg_copy_keyrings (void); |
int gnupg_copy_keyrings (void); |
112 |
|
int gnupg_import_keypair (void); |
113 |
int check_gnupg_engine (const char *need_gpg_ver, |
int check_gnupg_engine (const char *need_gpg_ver, |
114 |
int *r_major, int *r_minor, int *r_patch); |
int *r_major, int *r_minor, int *r_patch); |
115 |
|
|
208 |
char *request_passphrase2 (const char *title, int flags, int *ret_cancel); |
char *request_passphrase2 (const char *title, int flags, int *ret_cancel); |
209 |
char *request_key_passphrase (gpgme_key_t key, const char *title, |
char *request_key_passphrase (gpgme_key_t key, const char *title, |
210 |
int *ret_cancel); |
int *ret_cancel); |
211 |
const char * passphrase_cb (void *opaque, const char * desc, void *r_hd); |
//const char * passphrase_cb (void *opaque, const char * desc, void *r_hd); |
212 |
char * get_key_userid (const char *keyid); |
char * get_key_userid (const char *keyid); |
213 |
int check_passwd_quality (const char *pass, int strict); |
int check_passwd_quality (const char *pass, int strict); |
214 |
|
|
218 |
gpgme_error_t gpg_clip_get_pgptype (int *r_type); |
gpgme_error_t gpg_clip_get_pgptype (int *r_type); |
219 |
gpgme_error_t gpg_clip_parse_pgpid (const char *data, int *r_type); |
gpgme_error_t gpg_clip_parse_pgpid (const char *data, int *r_type); |
220 |
|
|
221 |
|
gpgme_error_t gpg_data_utf8_new_from_clipboard (gpgme_data_t *r_dh, |
222 |
|
int wraplen, int *r_is_utf8); |
223 |
|
gpgme_error_t gpg_data_new_from_clipboard (gpgme_data_t *r_dh, |
224 |
|
int wraplen); |
225 |
|
|
226 |
|
gpgme_error_t gpg_data_release_utf8_to_clipboard (gpgme_data_t dh); |
227 |
|
gpgme_error_t gpg_data_release_to_clipboard (gpgme_data_t dh, int chg_ver); |
228 |
|
|
229 |
|
|
230 |
/* wptGPGMEData.cpp --*/ |
/* wptGPGMEData.cpp --*/ |
231 |
gpgme_error_t gpg_data_new_from_clipboard (gpgme_data_t *r_dh, int wraplen); |
|
|
void gpg_data_release_and_set_clipboard (gpgme_data_t dh, int chg_ver); |
|
232 |
size_t gpg_data_readline (gpgme_data_t dh, char *line, size_t nbytes); |
size_t gpg_data_readline (gpgme_data_t dh, char *line, size_t nbytes); |
233 |
|
|
234 |
gpgme_error_t gpg_data_release_and_set_file (gpgme_data_t dh, const char *fname); |
gpgme_error_t gpg_data_release_and_set_file (gpgme_data_t dh, const char *fname); |