- if Why == None:
- GoodSig = 1;
- KeyID = Split[2];
- Owner = ' '.join(Split[3:])
- # If this message is signed with a subkey which has not yet
- # expired, GnuPG will say GOODSIG here, even if the primary
- # key already has expired. This came up in discussion of
- # bug #489225. GPGKeySearch only returns non-expired keys.
- Verify = GPGKeySearch(KeyID);
- if len(Verify) == 0:
- GoodSig = 0
- Why = "Key has expired (no unexpired key found in keyring matching %s)"%(KeyId);
-
- # Bad signature response
- if Split[1] == "BADSIG":
- GoodSig = 0;
- KeyID = Split[2];
+ if Why == None:
+ GoodSig = 1;
+ KeyID = Split[2];
+ Owner = ' '.join(Split[3:])
+ # If this message is signed with a subkey which has not yet
+ # expired, GnuPG will say GOODSIG here, even if the primary
+ # key already has expired. This came up in discussion of
+ # bug #489225. GPGKeySearch only returns non-expired keys.
+ Verify = GPGKeySearch(KeyID);
+ if len(Verify) == 0:
+ GoodSig = 0
+ Why = "Key has expired (no unexpired key found in keyring matching %s)"%(KeyId);
+
+ # Bad signature response
+ if Split[1] == "BADSIG":
+ GoodSig = 0;
+ KeyID = Split[2];