get signature even if it's a bad signature (what is a good signature ?)
This commit is contained in:
parent
544eefd3ac
commit
e067c874b8
|
@ -147,7 +147,7 @@ else:
|
||||||
|
|
||||||
proc = self.run(['--verify', '--enable-special-filenames', '-', '-&%s'%fd], create_fhs=['stdin', 'status', 'stderr'])
|
proc = self.run(['--verify', '--enable-special-filenames', '-', '-&%s'%fd], create_fhs=['stdin', 'status', 'stderr'])
|
||||||
|
|
||||||
file.close
|
file.close()
|
||||||
sign = self.addHeaderFooter(sign, 'SIGNATURE')
|
sign = self.addHeaderFooter(sign, 'SIGNATURE')
|
||||||
proc.handles['stdin'].write(sign)
|
proc.handles['stdin'].write(sign)
|
||||||
proc.handles['stdin'].close()
|
proc.handles['stdin'].close()
|
||||||
|
@ -163,6 +163,8 @@ else:
|
||||||
keyid = ''
|
keyid = ''
|
||||||
if resp.has_key('GOODSIG'):
|
if resp.has_key('GOODSIG'):
|
||||||
keyid = string.split(resp['GOODSIG'])[0]
|
keyid = string.split(resp['GOODSIG'])[0]
|
||||||
|
if resp.has_key('BADSIG'):
|
||||||
|
keyid = string.split(resp['BADSIG'])[0]
|
||||||
return keyid
|
return keyid
|
||||||
|
|
||||||
def get_secret_keys(self):
|
def get_secret_keys(self):
|
||||||
|
|
Loading…
Reference in New Issue