[gnome-keysign: 65/75] gpgmeh: sign_key: bail out INV_SGNR
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 65/75] gpgmeh: sign_key: bail out INV_SGNR
- Date: Fri, 29 Sep 2017 11:27:47 +0000 (UTC)
commit 5654bdbb2df79b7b1060967ee9d6d3a87997680d
Author: Tobias Mueller <muelli cryptobitch de>
Date: Thu Sep 21 22:48:24 2017 +0200
gpgmeh: sign_key: bail out INV_SGNR
When gpg gives us INV_SGNR it seems that we should rather not ignore it.
It happens when you don't have secret keys to sign with (then you get
code 9). That's a condition that we want to notice.
keysign/gpgmeh.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/keysign/gpgmeh.py b/keysign/gpgmeh.py
index b533f63..d45c881 100644
--- a/keysign/gpgmeh.py
+++ b/keysign/gpgmeh.py
@@ -101,6 +101,7 @@ def del_uids(uids):
def sign_key(uid=0, sign_cmd=u"sign", expire=False, check=3,
error_cb=None):
+ log.info("Signing key uid %r", uid)
status, prompt = yield None
assert status == gpg.constants.STATUS_GET_LINE
assert prompt == u"keyedit.prompt"
@@ -125,9 +126,9 @@ def sign_key(uid=0, sign_cmd=u"sign", expire=False, check=3,
status, prompt = yield '%d' % check
elif prompt == 'sign_uid.okay':
status, prompt = yield 'Y'
- elif status == gpg.constants.STATUS_INV_SGNR:
+ #elif status == gpg.constants.STATUS_INV_SGNR:
# When does this actually happen?
- status, prompt = yield None
+ # status, prompt = yield None
elif status == gpg.constants.STATUS_PINENTRY_LAUNCHED:
status, prompt = yield None
elif status == gpg.constants.STATUS_GOT_IT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]