comparison mcabber/mcabber/pgp.c @ 2208:7c843b29571b

Fix changeset fec172dbacc7 The PGP signature key id was not reported correctly.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 18 Oct 2015 21:02:36 +0200
parents ff18feb75a6d
children 778280b01bcb
comparison
equal deleted inserted replaced
2207:3a4a3a180c9c 2208:7c843b29571b
262 if (!err) { 262 if (!err) {
263 gpgme_verify_result_t vr = gpgme_op_verify_result(ctx); 263 gpgme_verify_result_t vr = gpgme_op_verify_result(ctx);
264 if (vr && vr->signatures) { 264 if (vr && vr->signatures) {
265 gpgme_signature_t s = NULL; 265 gpgme_signature_t s = NULL;
266 // check all signatures and stop if the first could be verified 266 // check all signatures and stop if the first could be verified
267 for (s = vr->signatures; 267 for (s = vr->signatures; s && !verified_key; s = s->next) {
268 (s != NULL) && (verified_key != NULL);
269 s = s->next) {
270 // Found the fingerprint. Let's try to get the key id. 268 // Found the fingerprint. Let's try to get the key id.
271 if (NULL != s->fpr) { 269 if (NULL != s->fpr) {
272 if (!gpgme_get_key(ctx, s->fpr, &key, 0)) { 270 if (!gpgme_get_key(ctx, s->fpr, &key, 0)) {
273 if (key) { 271 if (key) {
274 verified_key = g_strdup(key->subkeys->keyid); 272 verified_key = g_strdup(key->subkeys->keyid);