48 |
struct fm_state_s { |
struct fm_state_s { |
49 |
gpgme_ctx_t ctx; /* currently used gpgme context. */ |
gpgme_ctx_t ctx; /* currently used gpgme context. */ |
50 |
gpgme_key_t *recp; /* selected recipients. */ |
gpgme_key_t *recp; /* selected recipients. */ |
51 |
|
int n_recp; |
52 |
char *output; /* output file name. */ |
char *output; /* output file name. */ |
53 |
char *opaque; |
char *opaque; |
54 |
int cancel; /* 1=if user cancelled operation. */ |
int cancel; /* 1=if user cancelled operation. */ |
55 |
HWND dlg; /* handle to the calling dialog. */ |
HWND dlg; /* handle to the calling dialog. */ |
56 |
passphrase_cb_s pass_cb; |
struct passphrase_cb_s pass_cb; |
57 |
|
struct progress_filter_s *prog_cb; |
58 |
int init_cb; |
int init_cb; |
59 |
int cache_cb; |
int cache_cb; |
60 |
gpgme_sig_mode_t sigmode; /* used signature mode. */ |
gpgme_sig_mode_t sigmode; /* used signature mode. */ |
61 |
unsigned int implist_revcert:1; |
struct { |
62 |
|
unsigned int revcert:1; |
63 |
|
unsigned int has_seckey:1; |
64 |
|
} import; |
65 |
unsigned int wipe:1; /* 1=if original file should be wiped. */ |
unsigned int wipe:1; /* 1=if original file should be wiped. */ |
66 |
unsigned int req_signer:1; /* 1=if user wants to select a signer. */ |
unsigned int req_signer:1; /* 1=if user wants to select a signer. */ |
67 |
}; |
}; |
72 |
struct gpgme_data_cbs cbs; |
struct gpgme_data_cbs cbs; |
73 |
FILE *handle; |
FILE *handle; |
74 |
gpgme_data_t dat; |
gpgme_data_t dat; |
75 |
|
unsigned long size; |
76 |
|
unsigned long off; |
77 |
|
void *cb_value; |
78 |
}; |
}; |
79 |
typedef struct file_data_s *file_data_t; |
typedef struct file_data_s *file_data_t; |
80 |
|
|
81 |
gpgme_error_t gpg_file_data_new (const char *fname, int for_read, file_data_t *r_cb); |
/*-- wptFileCBS.cpp --*/ |
82 |
|
gpgme_error_t gpg_file_data_new (const char *fname, int for_read, |
83 |
|
file_data_t *r_cb); |
84 |
void gpg_file_data_release (file_data_t cb); |
void gpg_file_data_release (file_data_t cb); |
85 |
|
void gpg_file_data_set_cb (file_data_t ctx, |
86 |
|
struct progress_filter_s *pfx); |
87 |
|
|
88 |
/*-- wptFileManager.cpp --*/ |
/*-- wptFileManager.cpp --*/ |
89 |
char * fm_quote_file (const char * name); |
char * fm_quote_file (const char * name); |
95 |
void fm_delete (listview_ctrl_t lv); |
void fm_delete (listview_ctrl_t lv); |
96 |
int fm_add_dropped_files (listview_ctrl_t lv, HDROP dd_files); |
int fm_add_dropped_files (listview_ctrl_t lv, HDROP dd_files); |
97 |
int fm_add_opened_files (listview_ctrl_t lv, HWND dlg); |
int fm_add_opened_files (listview_ctrl_t lv, HWND dlg); |
|
const char* fm_get_file_type (const char *fname); |
|
98 |
void fm_remove_crit_file_attrs (const char *fname, int force); |
void fm_remove_crit_file_attrs (const char *fname, int force); |
99 |
int fm_get_current_pos (listview_ctrl_t lv); |
int fm_get_current_pos (listview_ctrl_t lv); |
100 |
int fm_sort (listview_ctrl_t lv, int sortby); |
int fm_sort (listview_ctrl_t lv, int sortby); |
103 |
int fm_check_file_type (listview_ctrl_t lv, int pos, int fm_cmd); |
int fm_check_file_type (listview_ctrl_t lv, int pos, int fm_cmd); |
104 |
int fm_send_file (listview_ctrl_t lv); |
int fm_send_file (listview_ctrl_t lv); |
105 |
|
|
106 |
/*-- commands --*/ |
/*-- ccommands --*/ |
107 |
int fm_encrypt (fm_state_t c, const char * name, int sign); |
int fm_encrypt (fm_state_t c, const char * name, int sign); |
108 |
int fm_sym_encrypt (fm_state_t c, const char * name); |
int fm_sym_encrypt (fm_state_t c, const char * name); |
109 |
int fm_decrypt (fm_state_t c, const char * name); |
int fm_decrypt (fm_state_t c, const char * name); |