Skip to content
Snippets Groups Projects
Commit b9679003 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

get the expired key information back

parent 6dc89898
No related branches found
No related tags found
No related merge requests found
......@@ -494,6 +494,7 @@ class Sign(object):
self.type = None
self.hash_algo = None
self.fingerprint = None
self.status = ''
def __nonzero__(self):
return self.fingerprint is not None
......@@ -506,9 +507,11 @@ class Sign(object):
def handle_status(self, key, value):
if key in ("USERID_HINT", "NEED_PASSPHRASE", "BAD_PASSPHRASE",
"GOOD_PASSPHRASE", "BEGIN_SIGNING", "CARDCTRL", "INV_SGNR",
"KEYEXPIRED", "SIGEXPIRED", "KEYREVOKED", "NO_SGNR",
"MISSING_PASSPHRASE", "SC_OP_FAILURE", "SC_OP_SUCCESS"):
"KEYREVOKED", "NO_SGNR", "MISSING_PASSPHRASE",
"SC_OP_FAILURE", "SC_OP_SUCCESS"):
pass
elif key in ("KEYEXPIRED", "SIGEXPIRED"):
self.status = 'key expired'
elif key == "SIG_CREATED":
(self.type,
algo, self.hash_algo, cls,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment