[gnome-keysign: 29/65] avahioffer: also return the code
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 29/65] avahioffer: also return the code
- Date: Tue, 3 Oct 2017 11:39:20 +0000 (UTC)
commit 0ae3e092dc2d8ee8e8b8fbe618cc5695b4042f5e
Author: RyuzakiKK <aasonykk gmail com>
Date: Sun Aug 20 16:42:37 2017 +0200
avahioffer: also return the code
In this case is the fingerprint of the key
keysign/avahioffer.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/keysign/avahioffer.py b/keysign/avahioffer.py
index 4b2f749..ecc2c0d 100755
--- a/keysign/avahioffer.py
+++ b/keysign/avahioffer.py
@@ -39,7 +39,7 @@ if __name__ == "__main__" and __package__ is None:
from .__init__ import __version__
from .gpgmh import get_usable_keys, get_public_key_data
from .i18n import _
-from .util import mac_generate
+from .util import mac_generate, format_fingerprint
from . import Keyserver
log = logging.getLogger(__name__)
@@ -64,7 +64,7 @@ class AvahiHTTPOffer:
log.info("Requesting to start")
self.keyserver.start()
- return discovery_info
+ return format_fingerprint(self.key.fingerprint), discovery_info
def stop(self):
"Stops offering the key"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]