625 |
|
|
626 |
|
|
627 |
/* Helper to map dialog indexes to GPG addkey commands */ |
/* Helper to map dialog indexes to GPG addkey commands */ |
628 |
typedef struct subkey_menu_t { |
struct subkey_menu_t { |
629 |
int index; |
int index; |
630 |
const char *text; |
const char *text; |
631 |
int gpg_index; |
int gpg_index; |
1607 |
{ |
{ |
1608 |
static keyedit_cb_t cb = NULL; |
static keyedit_cb_t cb = NULL; |
1609 |
gpg_uid_info_t inf=NULL, u; |
gpg_uid_info_t inf=NULL, u; |
|
gpgme_key_t key; |
|
1610 |
char buf[128]; |
char buf[128]; |
1611 |
int pos; |
int pos; |
1612 |
|
|
1615 |
cb = (keyedit_cb_t)lparam; |
cb = (keyedit_cb_t)lparam; |
1616 |
if (!cb) |
if (!cb) |
1617 |
BUG (NULL); |
BUG (NULL); |
|
key = (gpgme_key_t)cb->opaque; |
|
1618 |
listview_get_item_text (cb->lv, cb->lv_pos, |
listview_get_item_text (cb->lv, cb->lv_pos, |
1619 |
UID_COL_EMAIL, buf, DIM (buf)-1); |
UID_COL_EMAIL, buf, DIM (buf)-1); |
1620 |
pos = do_find_userid (cb->keyid, buf, NULL, &inf); |
pos = do_find_userid (cb->keyid, buf, NULL, &inf); |