update python-gnupg to 0.3.0 + add KEYEXPIRED support. Fixes #7151
This commit is contained in:
parent
1189f2c0ee
commit
c28282300b
2 changed files with 622 additions and 572 deletions
1190
src/common/gnupg.py
1190
src/common/gnupg.py
File diff suppressed because it is too large
Load diff
|
@ -72,8 +72,8 @@ if HAVE_GPG:
|
||||||
|
|
||||||
if result.fingerprint:
|
if result.fingerprint:
|
||||||
return self._stripHeaderFooter(str(result))
|
return self._stripHeaderFooter(str(result))
|
||||||
# if 'KEYEXPIRED' in resp:
|
if result.status == 'key expired':
|
||||||
# return 'KEYEXPIRED'
|
return 'KEYEXPIRED'
|
||||||
return 'BAD_PASSPHRASE'
|
return 'BAD_PASSPHRASE'
|
||||||
|
|
||||||
def verify(self, str_, sign):
|
def verify(self, str_, sign):
|
||||||
|
|
Loading…
Add table
Reference in a new issue