fix public key output

This commit is contained in:
Markus Ottela 2016-01-28 05:01:42 +02:00
parent 9f571bdb74
commit dc9a256d75
2 changed files with 8 additions and 6 deletions

12
Rx.py
View File

@ -376,7 +376,7 @@ def rotate_key(account, old_key):
def display_pub_key(parameters):
"""
Display public key received from contact.
:param parameters: Packet containing public key.
:return: None
"""
@ -407,8 +407,10 @@ def display_pub_key(parameters):
print("Received an ephemeral public key from %s:\n" % account[3:])
s = public_key if local_testing else final
print(" %s %s\n\n" % (s, chksm))
if local_testing:
print(" %s%s\n\n" % (public_key, chksm))
else:
print(" %s %s\n\n" % (final, chksm))
return None
@ -1572,7 +1574,7 @@ def cancel_message(account):
def cancel_file(account):
"""
Process cancel file packet.
:param account: Sender's account (e.g. alice@jabber.org).
:return: None
"""
@ -1600,7 +1602,7 @@ def short_message(account, packet):
Process short message packet.
Strip header from packet and add message to m_dictionary.
:param account: Sender's account (e.g. alice@jabber.org).
:param packet: Packet to process.
:return: None

View File

@ -116,7 +116,7 @@ b7093331d65eaf36b218f105a0b7a710ade5cf520b96da4f4b580600adf4ad71 tfc-mods.zip
c76c6ec69dc7b233dc58aff42b45d87e8ec8f8e4e32ecf790260ca9e436ec42f dd.py
264889d2d2f06d258035bec8baa2e1300f42805d2d6b1987faf1c5cb6e72bbf7 hwrng.py
142cb4cb8ba803880015ccd3a82d5428a4480f4e7e463245977ba797ebf72565 NH.py
d101d5a1308a09a79824d2652dcad0319c504e50a71d96fee9d3d189df50a946 Rx.py
09bd84a25e71c9ddf4d9d5a7f8710dc79fe633e5a27c5f5ae97cd08d9dd02836 Rx.py
af392c14f4390103ab9f28d042b8dc353b1d9f5590aff01d9a456047c6babd4d test_nh.py
acd7ca80c2b7b3f15c5a588d0dfc858246f1675456d787d655e7af093d5ab2ed test_rx.py
73a01d9176f883e16b48858ee62ae847f09b9ab0e663db5a4f8628081638a0b9 test_tx.py