70 |
typedef struct fm_state_s * fm_state_t; |
typedef struct fm_state_s * fm_state_t; |
71 |
|
|
72 |
|
|
73 |
|
/* Signature verification context for a file. */ |
74 |
|
struct file_sig_ctx_s { |
75 |
|
char *file; /* plaintext file name */ |
76 |
|
gpgme_signature_t sig; /* the actual signature */ |
77 |
|
unsigned use_uid:1; /* 1=if the user id from context should be used. */ |
78 |
|
const char *user_id; |
79 |
|
}; |
80 |
|
typedef struct file_sig_ctx_s *file_sig_ctx_t; |
81 |
|
|
82 |
|
|
83 |
enum file_data_flag_t { |
enum file_data_flag_t { |
84 |
F_DATA_WRITE = 0, |
F_DATA_WRITE = 0, |
85 |
F_DATA_READ = 1, |
F_DATA_READ = 1, |
123 |
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); |
124 |
int fm_send_file (listview_ctrl_t lv); |
int fm_send_file (listview_ctrl_t lv); |
125 |
|
|
126 |
|
/*-- wptFileVerifyDlg.cpp --*/ |
127 |
|
void file_verify_add_state (file_sig_ctx_t c); |
128 |
|
void file_verify_wait (void); |
129 |
|
|
130 |
/*-- ccommands --*/ |
/*-- ccommands --*/ |
131 |
int fm_encrypt_into_zip (fm_state_t ctx, listview_ctrl_t lv); |
int fm_encrypt_into_zip (fm_state_t ctx, listview_ctrl_t lv); |
132 |
int fm_encrypt (fm_state_t c, const char * name, int sign); |
int fm_encrypt (fm_state_t c, const char * name, int sign); |