update python-gnupg version. Fixes #8051
This commit is contained in:
parent
61648b11b5
commit
d003e1135d
|
@ -229,7 +229,7 @@ class Verify(object):
|
||||||
"DECRYPTION_OKAY", "INV_SGNR", "FILE_START", "FILE_ERROR",
|
"DECRYPTION_OKAY", "INV_SGNR", "FILE_START", "FILE_ERROR",
|
||||||
"FILE_DONE", "PKA_TRUST_GOOD", "PKA_TRUST_BAD", "BADMDC",
|
"FILE_DONE", "PKA_TRUST_GOOD", "PKA_TRUST_BAD", "BADMDC",
|
||||||
"GOODMDC", "NO_SGNR", "NOTATION_NAME", "NOTATION_DATA",
|
"GOODMDC", "NO_SGNR", "NOTATION_NAME", "NOTATION_DATA",
|
||||||
"PROGRESS"):
|
"PROGRESS", "PINENTRY_LAUNCHED", "NEWSIG"):
|
||||||
pass
|
pass
|
||||||
elif key == "BADSIG":
|
elif key == "BADSIG":
|
||||||
self.valid = False
|
self.valid = False
|
||||||
|
@ -509,7 +509,8 @@ class Crypt(Verify, TextHandler):
|
||||||
def handle_status(self, key, value):
|
def handle_status(self, key, value):
|
||||||
if key in ("ENC_TO", "USERID_HINT", "GOODMDC", "END_DECRYPTION",
|
if key in ("ENC_TO", "USERID_HINT", "GOODMDC", "END_DECRYPTION",
|
||||||
"BEGIN_SIGNING", "NO_SECKEY", "ERROR", "NODATA", "PROGRESS",
|
"BEGIN_SIGNING", "NO_SECKEY", "ERROR", "NODATA", "PROGRESS",
|
||||||
"CARDCTRL", "BADMDC", "SC_OP_FAILURE", "SC_OP_SUCCESS"):
|
"CARDCTRL", "BADMDC", "SC_OP_FAILURE", "SC_OP_SUCCESS",
|
||||||
|
"PINENTRY_LAUNCHED"):
|
||||||
# in the case of ERROR, this is because a more specific error
|
# in the case of ERROR, this is because a more specific error
|
||||||
# message will have come first
|
# message will have come first
|
||||||
pass
|
pass
|
||||||
|
@ -557,7 +558,8 @@ class GenKey(object):
|
||||||
return self.fingerprint or ''
|
return self.fingerprint or ''
|
||||||
|
|
||||||
def handle_status(self, key, value):
|
def handle_status(self, key, value):
|
||||||
if key in ("PROGRESS", "GOOD_PASSPHRASE", "NODATA", "KEY_NOT_CREATED"):
|
if key in ("PROGRESS", "GOOD_PASSPHRASE", "NODATA", "KEY_NOT_CREATED",
|
||||||
|
"PINENTRY_LAUNCHED"):
|
||||||
pass
|
pass
|
||||||
elif key == "KEY_CREATED":
|
elif key == "KEY_CREATED":
|
||||||
(self.type,self.fingerprint) = value.split()
|
(self.type,self.fingerprint) = value.split()
|
||||||
|
@ -1202,10 +1204,8 @@ class GPG(object):
|
||||||
parms.setdefault('Key-Type','RSA')
|
parms.setdefault('Key-Type','RSA')
|
||||||
parms.setdefault('Key-Length',2048)
|
parms.setdefault('Key-Length',2048)
|
||||||
parms.setdefault('Name-Real', "Autogenerated Key")
|
parms.setdefault('Name-Real', "Autogenerated Key")
|
||||||
try:
|
logname = (os.environ.get('LOGNAME') or os.environ.get('USERNAME') or
|
||||||
logname = os.environ['LOGNAME']
|
'unspecified')
|
||||||
except KeyError:
|
|
||||||
logname = os.environ['USERNAME']
|
|
||||||
hostname = socket.gethostname()
|
hostname = socket.gethostname()
|
||||||
parms.setdefault('Name-Email', "%s@%s" % (logname.replace(' ', '_'),
|
parms.setdefault('Name-Email', "%s@%s" % (logname.replace(' ', '_'),
|
||||||
hostname))
|
hostname))
|
||||||
|
|
Loading…
Reference in New Issue