send --verify: tell user to include --verify on receiver too

In the long run, this needs to be included in the second PAKE message,
and the MitM consequences thought through.
This commit is contained in:
Brian Warner 2015-04-09 22:56:39 -05:00
parent 5e593509b4
commit 5f35fcee61
2 changed files with 8 additions and 2 deletions

View File

@ -21,7 +21,10 @@ def send_file(args):
code = args.code
else:
code = i.get_code(args.code_length)
print("On the other computer, please run: wormhole receive-file")
other_cmd = "wormhole receive-file"
if args.verify:
other_cmd = "wormhole --verify receive-file"
print("On the other computer, please run: %s" % other_cmd)
print("Wormhole code is '%s'" % code)
print()

View File

@ -15,7 +15,10 @@ def send_text(args):
code = args.code
else:
code = i.get_code(args.code_length)
print("On the other computer, please run: wormhole receive-text")
other_cmd = "wormhole receive-text"
if args.verify:
other_cmd = "wormhole --verify receive-text"
print("On the other computer, please run: %s" % other_cmd)
print("Wormhole code is: %s" % code)
print("")