More byte changes and passphrase changes

* exportimport works, but will still segfault for an as yet unknown
  reason.
* genkey produces a traceback error, but does create the key as
  intended.
* matched passphrase in signverify.
This commit is contained in:
Ben McGinnes 2015-05-17 04:22:53 +10:00
parent ba3c9f2617
commit 325b0ca341
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ core.check_version(None)
expkey = core.Data() expkey = core.Data()
c = core.Context() c = core.Context()
c.set_armor(1) c.set_armor(1)
user = "joe@example.org" user = b"joe@example.org"
print(" - Export %s's public keys - " % user) print(" - Export %s's public keys - " % user)
c.op_export(user, 0, expkey) c.op_export(user, 0, expkey)

View File

@ -36,7 +36,7 @@ Subkey-Length: 2048
Name-Real: Joe Tester Name-Real: Joe Tester
Name-Comment: with stupid passphrase Name-Comment: with stupid passphrase
Name-Email: joe@example.org Name-Email: joe@example.org
Passphrase: Crypt0-R0cks Passphrase: Crypt0R0cks
Expire-Date: 2020-12-31 Expire-Date: 2020-12-31
</GnupgKeyParms> </GnupgKeyParms>
""" """

View File

@ -41,7 +41,7 @@ if not c.signers_enum(0):
# This is a map between signer e-mail and its password # This is a map between signer e-mail and its password
passlist = { passlist = {
"<joe@example.org>": "Crypt0-R0cks" "<joe@example.org>": "Crypt0R0cks"
} }
# callback will return password based on the e-mail listed in the hint. # callback will return password based on the e-mail listed in the hint.