From: Pierre Habouzit Date: Tue, 3 Apr 2007 13:38:57 +0000 (+0200) Subject: old disabled code X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=8c4119f543278427eb9b632589b5e786c2961b01;p=apps%2Fmadmutt.git old disabled code Signed-off-by: Pierre Habouzit --- diff --git a/lib-crypt/crypt-gpgme.c b/lib-crypt/crypt-gpgme.c index d17abb8..e575b3b 100644 --- a/lib-crypt/crypt-gpgme.c +++ b/lib-crypt/crypt-gpgme.c @@ -3099,26 +3099,6 @@ static crypt_key_t *get_candidates (string_list_t * hints, unsigned int app, if (key_check_cap (key, KEY_CAP_CAN_SIGN)) flags |= KEYFLAG_CANSIGN; -#if 0 /* DISABLED code */ - if (!flags) { - /* Bug in gpg. Capabilities are not listed for secret - keys. Try to deduce them from the algorithm. */ - - switch (key->subkeys[0].pubkey_algo) { - case GPGME_PK_RSA: - flags |= KEYFLAG_CANENCRYPT; - flags |= KEYFLAG_CANSIGN; - break; - case GPGME_PK_ELG_E: - flags |= KEYFLAG_CANENCRYPT; - break; - case GPGME_PK_DSA: - flags |= KEYFLAG_CANSIGN; - break; - } - } -#endif /* DISABLED code */ - for (idx = 0, uid = key->uids; uid; idx++, uid = uid->next) { k = p_new(crypt_key_t, 1); k->kobj = key;