revert 1b32cc6794190c9fb6124b6de5b6f23e3007eec9
authorPaul <paul@claws-mail.org>
Sun, 1 Nov 2015 15:52:58 +0000 (15:52 +0000)
committerPaul <paul@claws-mail.org>
Sun, 1 Nov 2015 15:52:58 +0000 (15:52 +0000)
it was a regression, and causes 'end of file' message on checking sig
of a key not in the keyring, whereas without it you get the 'Key KEYID
not avilable...' message instead. If there is a fix, that was not it.

src/plugins/pgpcore/sgpgme.c

index 371a7f0432d9cb3514fb606aad5370a52b4d0db4..67300781c46a28b43ee6de925b5edf539fbacc93 100644 (file)
@@ -218,16 +218,6 @@ gchar *sgpgme_sigstat_info_short(gpgme_ctx_t ctx, gpgme_verify_result_t status)
        } else if (gpg_err_code(err) != GPG_ERR_NO_ERROR && gpg_err_code(err) != GPG_ERR_EOF) {
                return g_strdup_printf(_("The signature can't be checked - %s"), 
                        gpgme_strerror(err));
        } else if (gpg_err_code(err) != GPG_ERR_NO_ERROR && gpg_err_code(err) != GPG_ERR_EOF) {
                return g_strdup_printf(_("The signature can't be checked - %s"), 
                        gpgme_strerror(err));
-       } else if (gpg_err_code(err) != GPG_ERR_NO_ERROR && gpg_err_code(err) == GPG_ERR_EOF) {
-               /*
-                * When gpg is upgraded to gpg-v21 then installer tries to migrate the old
-                * gpg keyrings found in ~/.gnupg to the new version. If the keyrings contain
-                * very old keys using ciphers no more supported in gpg-v21 this transition
-                * can fail and the left-over ~/.gnupg/pubring.gpg will cause claws to crash
-                * when the above condition is meet.
-                */
-               return g_strdup_printf(_("The signature can't be checked - %s."),
-                        gpgme_strerror(err));
        }
        if (key)
                uname = extract_name(key->uids->uid);
        }
        if (key)
                uname = extract_name(key->uids->uid);