[git] GPGME - branch, master, updated. gpgme-1.11.1-119-g279cac0
by Ben McGinnes
cvs at cvs.gnupg.org
Mon Aug 13 19:00:09 CEST 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".
The branch, master has been updated
via 279cac0ffbb3d865d997dc7fc9c1b53bbb55d3a2 (commit)
from a256d84882616341b3f357340533893a1db8b5c1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 279cac0ffbb3d865d997dc7fc9c1b53bbb55d3a2
Author: Ben McGinnes <ben at adversary.org>
Date: Tue Aug 14 02:55:56 2018 +1000
Symmetric example
* lang/python/examples/howto/symcrypt-file.py: *sigh*; passphrase was
right the first time, just the error check that wasn't.
* I really should stop second guessing myself one of these days ...
Signed-off-by: Ben McGinnes <ben at adversary.org>
diff --git a/lang/python/examples/howto/symcrypt-file.py b/lang/python/examples/howto/symcrypt-file.py
index 2e6ece4..785a4d0 100755
--- a/lang/python/examples/howto/symcrypt-file.py
+++ b/lang/python/examples/howto/symcrypt-file.py
@@ -46,7 +46,7 @@ with open(filename, "rb") as f:
with gpg.Context(armor=True) as ca:
try:
- ciphertext, result, sign_result = ca.encrypt(text, passphrase=True,
+ ciphertext, result, sign_result = ca.encrypt(text, passphrase=None,
sign=False)
with open("{0}.asc".format(filename), "wb") as fa:
fa.write(ciphertext)
@@ -55,7 +55,7 @@ with gpg.Context(armor=True) as ca:
with gpg.Context() as cg:
try:
- ciphertext, result, sign_result = cg.encrypt(text, passphrase=True,
+ ciphertext, result, sign_result = cg.encrypt(text, passphrase=None,
sign=False)
with open("{0}.gpg".format(filename), "wb") as fg:
fg.write(ciphertext)
-----------------------------------------------------------------------
Summary of changes:
lang/python/examples/howto/symcrypt-file.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list