Isis Lovecruft
2beac24161
Merge branch 'release/2.0.2'
2015-03-19 00:25:25 +00:00
Isis Lovecruft
4f1b1f6a8d
Refactor _make_binary_stream() error handling and variable names.
2015-03-19 00:12:21 +00:00
Isis Lovecruft
da59707945
Add docstring for _make_binary_encoding().
2015-03-19 00:10:40 +00:00
Isis Lovecruft
a6d024ff49
Separate _copy_data() binary encoding into new binary() function.
2015-03-19 00:08:29 +00:00
Isis Lovecruft
a06c93d6e7
Fix switched b() functions.
...
* FIXES mistake from commit 16107bc8a8
2015-03-19 00:07:19 +00:00
Isis Lovecruft
76d70c68aa
Add .coveragerc file.
2015-03-18 19:44:25 +00:00
Isis Lovecruft
94f81c3226
Merge branch 'fix/82-passphrase-empty-str' into develop
2015-03-18 19:40:23 +00:00
Isis Lovecruft
a749acf486
Avoid writing raw encrypted bytes to terminal debug loggers.
2015-03-18 19:39:22 +00:00
Isis Lovecruft
16107bc8a8
Workaround possible upstream GnuPG bug sign fail when passphrase=''.
...
If passed `--passphrase-fd 0` and piped the passphrase `''` (an empty
string), GnuPG will truncate the message being signed. The truncation
appears to only affect messages which contain newlines; for those
messages, the first line (up unto and including the newline character)
will be truncated and thus missing from the output signed message or
signature, causing verification for signatures on the original
non-truncated message to fail.
* FIXES #82 : https://github.com/isislovecruft/python-gnupg/issues/82
2015-03-18 19:33:09 +00:00
Isis Lovecruft
9be01ec6df
Add two more signature passphrase tests with bytes literals for #82 .
2015-03-18 19:31:33 +00:00
Isis Lovecruft
e90ae54738
Add two signature passphrase tests for reproducing Issue #82 .
2015-03-18 05:47:40 +00:00
Isis Lovecruft
fea39ec83e
Merge branch 'fix/4-test-deleting-secret-and-subkeys' into develop
2015-03-18 05:34:31 +00:00
Isis Lovecruft
b0584854e1
Add test for subkey deletion (which should delete public and secret).
...
* FIXES part of #4 :
https://github.com/isislovecruft/python-gnupg/issues/4
2015-03-18 05:32:28 +00:00
Isis Lovecruft
49079f9672
Add a test for deletion of secret keys.
...
* FIXES part of #4 :
https://github.com/isislovecruft/python-gnupg/issues/4
2015-03-18 05:32:00 +00:00
Isis Lovecruft
adc4994a0d
Cleanup test for public key deletion.
...
This changes the test to explicitely test that only the specified public
key is deleted, not its secret portions, nor any other key.
* FIXES part of #4 :
https://github.com/isislovecruft/python-gnupg/issues/4
2015-03-18 05:30:13 +00:00
Isis Lovecruft
8c5730666a
Merge branch 'fix/101-pypy-gen-key' into develop
2015-03-18 05:01:21 +00:00
Isis Lovecruft
5895997554
Fix UnicodeDecodeError in gen_key() when run with PyPy.
...
* FIXES #101 :
https://github.com/isislovecruft/python-gnupg/issues/101
2015-03-18 05:00:00 +00:00
Isis Lovecruft
917a3dcd89
Merge branch 'fix/102-py3k-decrypt-bytes-literal' into develop
2015-03-18 04:56:26 +00:00
Isis Lovecruft
b7f520244e
Add test for Issue #102 based on @doktorstick's example code.
2015-03-18 04:37:09 +00:00
Isis Lovecruft
742ccd77fb
Merge remote-tracking branch 'mvk/master' into develop
2015-03-18 03:52:50 +00:00
Isis Lovecruft
d66d86ca7e
Fix bug in example/make-8192-bit-key.py resulting from parser changes.
2015-03-18 03:50:16 +00:00
Max Kovgan
0af2720754
fix broken py2 compatibity
2015-03-16 19:39:38 +02:00
Isis Lovecruft
10df44b75f
Merge branch 'master' into develop
2015-03-13 05:06:50 +00:00
Isis Lovecruft
af781626a9
Merge branch 'release/2.0.1'
2015-03-13 05:06:34 +00:00
Isis Lovecruft
cf4d3efd8d
Merge branch 'fix/94-encrypt-from-stream' into develop
2015-03-13 03:48:49 +00:00
Isis Lovecruft
b7ff69092a
Avoid writing to /tmp and borking terminals in regression test from #94 .
2015-03-13 03:47:42 +00:00
Isis Lovecruft
8e6c2a752c
Merge branch 'fix/93-encrypt-to-stream' into develop
2015-03-13 03:46:47 +00:00
Isis Lovecruft
79285c4c17
Add @doktorstick's example code for reproducing #93 as a unittest.
...
* ADD regression test for #93 .
2015-03-13 03:45:20 +00:00
Isis Lovecruft
6d1890389c
Actually check output file contents in to test_encrypt_*() tests.
...
This provides more accurate testing for issues like #93 .
2015-03-13 03:44:12 +00:00
Isis Lovecruft
8579331562
Merge branch 'fix/94-encrypt-from-stream' into develop
2015-03-13 03:22:31 +00:00
Isis Lovecruft
0c87da3d78
Recognise builtin Python2 and Python3 file handle types as streams.
...
* FIXES Issue #93 for both Python2 and Python3.
2015-03-13 03:20:32 +00:00
Isis Lovecruft
38685ae001
Add @doktorstick's example code for reproducing Issue #93 as a test.
2015-03-13 03:18:52 +00:00
Isis Lovecruft
9d8d6cce5c
Merge branch 'fix/89-python3' into develop
2015-03-13 02:47:57 +00:00
Isis Lovecruft
43164fa7db
Fix Python3 stream encoding issues in _copy_data().
...
These issues were introduced in f8ccdc50
. Because we no longer convert
everything to an io.BytesIO in _encrypt() with _make_binary_stream(),
all io.StringIO()s which are passed through must take encoded strings
and io.BytesIO()s must take bytes (and there is actually a difference
with Python3).
Additionally, there appears to be an issue where the `outstream` passed
to _copy_data() is sometimes a _io.BufferedWriter and other times an
encodings.utf_8.StreamWriter. I am not sure yet where this problem was
introduced. For now, the workaround for dealing with the Python3
bytes/str io.BytesIO/io.StringIO problem also provides a workaround for
this issue.
* FIXES #88 .
* FIXES #89 for Python3.
* FIXES #93 .
2015-03-13 02:45:05 +00:00
Isis Lovecruft
a7e772f10a
Make an open() file mode explicitly binary.
...
It already was binary, due to the `from codecs import open as open`,
however we should be more explicit.
2015-03-13 02:32:52 +00:00
Isis Lovecruft
4be6fb75e3
Fix potential UnicodeEncodeError in gen_key_input().
2015-03-13 02:32:52 +00:00
Isis Lovecruft
b970917701
Fix multiple encoding errors in tests.
2015-03-13 02:32:51 +00:00
Isis Lovecruft
782a81b46a
Split encryption tests for file-like objects into multiple tests.
...
This modifies the tests added in #89 .
2015-03-13 02:32:50 +00:00
Isis Lovecruft
b3dd20a7e5
Merge branch 'fix/99-recv-keys-network-test' into develop
2015-03-13 02:26:36 +00:00
Isis Lovecruft
af403fe144
Move 'test_recv_keys_default' to a new test group which doesn't run.
...
* FIXES #99 temporarily.
2015-03-13 02:25:10 +00:00
Isis Lovecruft
657be31ae1
Change a str to a repr in a log message.
2015-03-13 02:21:18 +00:00
Isis Lovecruft
749ef6fa00
PEP8 whitespace fixes in gnupg/_meta.py.
2015-03-13 02:20:48 +00:00
Isis Lovecruft
2cf3dd1c86
Add coverage related commands to Makefile and clean up test directives.
2015-03-13 02:20:13 +00:00
Isis Lovecruft
3127c21d55
Merge branch 'fix/100-listpackets-good-passphrase' into develop
2015-03-11 03:44:31 +00:00
Isis Lovecruft
2c57c0f6d0
Handle [GOOD|BAD|MISSING]_PASSPHRASE statuses in _parsers.ListPackets.
...
* FIXES #100 .
2015-03-11 03:25:55 +00:00
Isis Lovecruft
88bfaaffc2
Merge branch 'fix/98-pinentry-launched' into develop
2015-03-09 08:52:12 +00:00
Isis Lovecruft
eb205774fb
Add support for PINENTRY_LAUNCHED status message.
...
* FIXES #98 .
2015-03-09 08:50:52 +00:00
Isis Lovecruft
5d03c3c5eb
Merge branch 'fix/96-no-use-agent' into develop
2015-03-09 08:45:22 +00:00
Isis Lovecruft
ae5cb33d63
Unset GPG.user_agent if using gpg2 binary.
...
* FIXES #96 .
2015-03-09 08:42:50 +00:00
Thomas Tanner
d3e6ae33b4
no-use-agent is obsolete for GPG2
...
(cherry picked from commit 19fd35c7232e42a4112c8f18686df1c0407c2d0d)
Signed-off-by: Isis Lovecruft <isis@leap.se>
* FIXES #96 .
* CLOSES #96 .
* CLOSES #46 .
2015-03-09 08:21:04 +00:00