52 |
}; |
}; |
53 |
|
|
54 |
/* Signature verification context for a file. */ |
/* Signature verification context for a file. */ |
55 |
struct siglog_context_s { |
struct file_sig_ctx_s { |
56 |
char file[384]; /* plaintext file name */ |
char *file; /* plaintext file name */ |
57 |
gpgme_signature_t sig; /* the actual signature */ |
gpgme_signature_t sig; /* the actual signature */ |
58 |
unsigned use_uid:1; /* 1=if the user id from context should be used. */ |
unsigned use_uid:1; /* 1=if the user id from context should be used. */ |
59 |
const char *user_id; |
const char *user_id; |
60 |
}; |
}; |
61 |
typedef struct siglog_context_s *siglog_context_t; |
typedef struct file_sig_ctx_s *file_sig_ctx_t; |
62 |
|
|
63 |
/*-- keylist.c --*/ |
/*-- keylist.c --*/ |
64 |
const char* get_key_pubalgo (gpgme_pubkey_algo_t alg); |
const char* get_key_pubalgo (gpgme_pubkey_algo_t alg); |
77 |
int count_userids (gpgme_key_t key); |
int count_userids (gpgme_key_t key); |
78 |
gpgme_subkey_t get_nth_key (gpgme_key_t key, int idx); |
gpgme_subkey_t get_nth_key (gpgme_key_t key, int idx); |
79 |
int count_subkeys (gpgme_key_t key); |
int count_subkeys (gpgme_key_t key); |
80 |
gpgme_key_sig_t get_nth_uid_sig (gpgme_user_id_t uid, int idx); |
gpgme_key_sig_t get_selfsig (gpgme_user_id_t uid, const char *keyid, int first); |
|
int count_uid_sigs (gpgme_user_id_t uid); |
|
81 |
|
|
82 |
listview_ctrl_t keylist_load( HWND ctrl, gpgme_keycache_t pubkc, gpgme_keycache_t seckc, |
listview_ctrl_t keylist_load( HWND ctrl, gpg_keycache_t pubkc, gpg_keycache_t seckc, |
83 |
int mode, int sortby ); |
int mode, int sortby ); |
84 |
int keylist_reload( listview_ctrl_t lv, gpgme_keycache_t c, int mode, int sortby ); |
int keylist_reload( listview_ctrl_t lv, gpg_keycache_t c, int mode, int sortby ); |
85 |
void keylist_delete( listview_ctrl_t lv ); |
void keylist_delete( listview_ctrl_t lv ); |
86 |
int keylist_add_key (listview_ctrl_t lv, int mode, gpgme_key_t key); |
int keylist_add_key (listview_ctrl_t lv, int mode, gpgme_key_t key); |
87 |
void keylist_upd_key (listview_ctrl_t lv, int pos, gpgme_key_t key); |
void keylist_upd_key (listview_ctrl_t lv, int pos, gpgme_key_t key); |
101 |
void siglist_delete( listview_ctrl_t lv ); |
void siglist_delete( listview_ctrl_t lv ); |
102 |
|
|
103 |
/*-- wptVerifyList.cpp --*/ |
/*-- wptVerifyList.cpp --*/ |
104 |
int verlist_build( listview_ctrl_t *lv, HWND ctrl, int fm_mode); |
int verlist_build (listview_ctrl_t *lv, HWND ctrl, int fm_mode); |
105 |
void verlist_delete( listview_ctrl_t lv ); |
void verlist_delete (listview_ctrl_t lv); |
106 |
void verlist_alloc( listview_ctrl_t lv, int nentries ); |
void verlist_alloc (listview_ctrl_t lv, int nentries ); |
107 |
int verlist_add_sig( listview_ctrl_t lv, gpgme_signature_t sig); |
int verlist_add_sig (listview_ctrl_t lv, gpgme_signature_t sig); |
108 |
int verlist_add_sig_log( listview_ctrl_t lv, siglog_context_t log ); |
int verlist_add_sig_log (listview_ctrl_t lv, file_sig_ctx_t log); |
109 |
|
|
110 |
/*-- seclist --*/ |
/*-- seclist --*/ |
111 |
struct keylist_s { |
struct keylist_s { |