155 |
/* Return the self signature of the key @keyid. |
/* Return the self signature of the key @keyid. |
156 |
If first is set, the first self sig will be returned. */ |
If first is set, the first self sig will be returned. */ |
157 |
gpgme_key_sig_t |
gpgme_key_sig_t |
158 |
get_selfsig (gpgme_user_id_t uid, const char *keyid, int first) |
get_selfsig (gpgme_key_sig_t sigs, const char *keyid, int first) |
159 |
{ |
{ |
160 |
gpgme_key_sig_t s, self_sig=NULL; |
gpgme_key_sig_t s, self_sig=NULL; |
161 |
long timestamp=0; |
long timestamp=0; |
164 |
if (strlen (keyid) == 8) |
if (strlen (keyid) == 8) |
165 |
off = 8; |
off = 8; |
166 |
|
|
167 |
for (s = uid->signatures; s; s = s->next) { |
for (s = sigs; s; s = s->next) { |
168 |
if (!strcmp (s->keyid+off, keyid) && s->timestamp > timestamp) { |
if (!strcmp (s->keyid+off, keyid) && s->timestamp > timestamp) { |
169 |
self_sig = s; |
self_sig = s; |
170 |
timestamp = s->timestamp; |
timestamp = s->timestamp; |
383 |
case GPGME_VALIDITY_MARGINAL: |
case GPGME_VALIDITY_MARGINAL: |
384 |
return _("Marginal"); |
return _("Marginal"); |
385 |
case GPGME_VALIDITY_FULL: |
case GPGME_VALIDITY_FULL: |
|
case GPGME_VALIDITY_ULTIMATE: |
|
386 |
return _("Full"); |
return _("Full"); |
387 |
|
case GPGME_VALIDITY_ULTIMATE: |
388 |
|
return _("Ultimate"); |
389 |
} |
} |
390 |
return ""; |
return ""; |
391 |
} |
} |
597 |
int j, n = 0, ext_chk = 0; |
int j, n = 0, ext_chk = 0; |
598 |
int rc = 0; |
int rc = 0; |
599 |
|
|
600 |
rc = listview_new (&lv); |
listview_new (&lv, ctrl); |
|
if (rc) |
|
|
return rc; |
|
|
|
|
|
lv->ctrl = ctrl; |
|
601 |
if (mode & KEYLIST_ENCRYPT_MIN) { |
if (mode & KEYLIST_ENCRYPT_MIN) { |
602 |
col = klist_enc; |
col = klist_enc; |
603 |
n = (DIM(klist_enc) -1); |
n = (DIM(klist_enc) -1); |