]> granicus.if.org Git - mutt/commitdiff
When encrypting a message to a user that has more than one subkey,
authorDavid Shaw <dshaw@jabberwocky.com>
Tue, 22 Jul 2003 12:56:38 +0000 (12:56 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Tue, 22 Jul 2003 12:56:38 +0000 (12:56 +0000)
at least one of which is revoked or expired, mutt treats the entire
key as unusable rather than just the subkey(s) in question.

gnupgparse.c

index ea0663efef1579a56aababd51b38c3838f719e7b..5236e7810f6ef10e4befff7d632479b8a8b7df7e 100644 (file)
@@ -300,7 +300,10 @@ static pgp_key_t parse_pub_line (char *buf, int *is_subkey, pgp_key_t k)
          }
 
         if (!is_uid && 
-           (!*is_subkey || !option (OPTPGPIGNORESUB) || !(flags & KEYFLAG_DISABLED)))
+           (!*is_subkey || !option (OPTPGPIGNORESUB)
+            || !((flags & KEYFLAG_DISABLED)
+                 || (flags & KEYFLAG_REVOKED)
+                 || (flags & KEYFLAG_EXPIRED))))
          k->flags |= flags;
 
        break;