Commit Graph

907 Commits (1f7e80a33d9a67055b37d1730ca77c1e87835f69)

Author SHA1 Message Date
Charles Duffy 1f7e80a33d properly pass argument during trustdb repair 2014-10-02 04:53:30 -05:00
Charles Duffy 3909474a4d Continue search for a usable binary if entries are symlinks
Existing code gives up searching for a GnuPG executable (returning None --
contrary to the docstring indicating that a RuntimeError will be thrown in all
cases where no binary can be found) if the first item found is a symlink or is
not accessed via an absolute path.

This refactored version moves the filtering logic down into the _which helper
-- and thus continues to search past unacceptable results -- even if the first
item found is not acceptable.
2014-09-30 20:50:46 -05:00
Charles Duffy fa47edce68 Ignore PROGRESS messages during verify operation
Parsing such messages would change documented behavior (which specifies a
limited set of messages, not conforming with the given status codes). Ignoring
them is thus the safer change.
2014-09-30 20:50:40 -05:00
Isis Lovecruft 87928205a8 Merge branch 'fix/24-output-to-filename' into develop 2014-08-02 04:18:27 +00:00
Isis Lovecruft 80741e8703
Remove `sudo` from `uninstall` directive in Makefile. 2014-08-02 04:17:24 +00:00
Isis Lovecruft 4d120a2288
Add unittest which tests encrypt() when `output` is given an open file.
* ADD new unittest, `test_encryption_to_filehandle`.
2014-08-02 04:14:22 +00:00
Isis Lovecruft 83784657d5
Add new unittest that tests encryption with a filename output.
* ADD test_encryption_to_filename which checks that encrypt(...,
   output='somefilename.gpg') works correctly (when `output` is a string
   containing the filename).
   This tests for the bug reported in Issue #24.
   https://github.com/isislovecruft/python-gnupg/issues/24
2014-08-02 04:02:15 +00:00
Isis Lovecruft 137d3ac5c5
Fix encrypting to filenames and/or file-like objects.
* FIXES Issue#24, which prevented python-gnupg from encrypting to a
   filename given as a string to the `output` parameter of
   `gnupg.GPGMeta._encrypt()`.

 * THANKS TO by Bill Buddington of SecureDrop and Yan Zhu of the
   Electronic Frontier Foundation (EFF) for finding and reporting the
   bug. The ticket for this bug can be viewed at:
   https://github.com/isislovecruft/python-gnupg/issues/24
2014-08-02 03:33:55 +00:00
Isis Lovecruft 5207ccc6b4
Update copyright years on Sphinx docs. 2014-08-02 01:54:30 +00:00
Isis Lovecruft 166eb472b9
Merge branch 'master' into develop 2014-08-02 01:15:13 +00:00
Isis Lovecruft ac850a40ee
Merge branch 'release/1.3.0' 2014-08-02 01:14:56 +00:00
Isis Lovecruft a238f9ad86
Merge remote-tracking branch 'kalikaneko/feature/subprocess_shell_false' into develop 2014-08-02 00:25:36 +00:00
Isis Lovecruft 285649cfa0
Merge remote-tracking branch 'kalikaneko/doc-fixes' into develop 2014-08-01 23:59:33 +00:00
Isis Lovecruft bee4c1f01a
Merge remote-tracking branch 'kalikaneko/fix-expired-test-certs' into develop 2014-08-01 23:56:43 +00:00
Isis Lovecruft 3c53bdf029
Merge branch 'master' into develop 2014-08-01 23:54:21 +00:00
Isis Lovecruft 2b47ac2508
Merge branch 'release/1.2.7' 2014-08-01 23:54:09 +00:00
kali 36c701b08f do not expand shell on subprocess 2014-08-01 17:37:11 -05:00
kali 99e3407036 fix failing test_signature_string_bad_passphase
also, do pass a passphrase to test_signature_string_verification
so that we have something to compare to.
2014-08-01 17:13:27 -05:00
kali 90c8586c8d substitute expired test certificates 2014-08-01 17:13:22 -05:00
kali 949b8b4511 ignore vim swapfiles 2014-07-14 10:33:51 -05:00
kali 6afd63ed34 add missing imports 2014-07-14 10:32:46 -05:00
kali 44c5d92745 update interface calls in README 2014-07-14 10:31:42 -05:00
Isis Lovecruft ea9363a466
Merge remote-tracking branch 'kalikaneko/bug/include-manifest' into develop 2014-07-09 10:44:48 +00:00
Kali Kaneko 8b58cb313c relax psutil version pinning 2014-07-02 12:27:05 -05:00
Kali Kaneko d8e2ab7a7c add Manifest.in
- include requirements.txt
- add LICENSE and docs to package
2014-07-02 12:26:42 -05:00
Isis Lovecruft b6a7de4104
Fix PyPI module classifiers to specify support for Python 3.3 and 3.4. 2014-06-04 21:14:23 +00:00
Isis Lovecruft ef01fef99a
Merge branch 'master' into develop 2014-06-04 21:11:49 +00:00
Isis Lovecruft 1ea44e81af
Merge branch 'release/1.2.6' 2014-06-04 21:11:13 +00:00
Isis Lovecruft ebd93db8c2
Merge remote-tracking branch 'zigg/fix/py3k-tests' into develop 2014-06-04 20:30:44 +00:00
Isis Lovecruft a508005d77
Merge remote-tracking branch 'ttanner/fix/default_key' into develop 2014-06-04 19:17:10 +00:00
Isis Lovecruft fde37b542a
Merge remote-tracking branch 'ttanner/fix/ordered2.6' into develop 2014-06-04 19:09:02 +00:00
Thomas Tanner 1fd400b5d3 more py2.6 fixes 2014-04-23 14:49:24 +02:00
Thomas Tanner 6b7fe3467d py2.6 support for testing 2014-04-23 14:06:30 +02:00
Matt Behrens e87e67cf15 more tests for #16. all now pass except one 2014-03-31 11:32:35 -04:00
Matt Behrens 3be2697a1b WIP fixing serveral Python 3 tests for #16 2014-03-30 19:53:45 -04:00
Matt Behrens 929fad0a1a prune unused exceptions imports for Python 3 2014-03-26 22:33:03 -04:00
Isis Lovecruft d94688fa30
Merge branch 'feature/8192-bit-key-example' into develop 2014-01-06 14:37:31 +00:00
Isis Lovecruft bc2a21d31c
Add example script which creates an 8192-bit key with 4096-bit subkey. 2014-01-05 20:10:23 +00:00
Isis Lovecruft 64fc3bc66f
Add 8192-bit-key/* to .gitignore. 2014-01-05 20:00:30 +00:00
Thomas Tanner 0d88a282ee fix import of OrderedDict 2013-12-29 01:56:25 +01:00
Isis Lovecruft a2abeff818
Merge branch 'master' into develop 2013-12-04 11:46:10 +00:00
Isis Lovecruft 3cdfbc2f9b
Merge branch 'release/1.2.5' 2013-12-04 11:45:46 +00:00
Isis Lovecruft 7bf4246c17
Fix setup.cfg 'upload_all' alias. 2013-12-04 11:34:49 +00:00
Isis Lovecruft 425d116ae0
Rewrite verification unittests to use correct parameters 2013-12-04 10:16:04 +00:00
Isis Lovecruft 56fab92b48
Fix issue with detached sig verification not writing verify output.
In the method `gnupg.GPG.verify_file()`, the `writer` was improperly
initialised: `_util._threaded_copy_data` was being given a filename when
it expects an open `file` object which it can read() from. Additionally,
the `writer` parameter was missing from the call to
`gnupg.GPG._collect_output()`, so even if it had been properly
initialised, the output would not have been written to the stdin of the
thread GnuPG was being called within.
2013-12-04 10:10:18 +00:00
Isis Lovecruft f5b345b1ae
Refactor _util._is_file to handle detached sigs and data on stdin.
When gnupg.GPG.verify_file() was changed recently to take the filename
of the signature file as an argument to GnuPG, and then take the data
file to be verified on stdin, the parser in _parsers._check_options()
would call _util._is_file(), which would return False and log an error
that "'-' is not a file!". This fixes that issue by catching OSError and
treating it differently.

Additionally, I renamed the _util._is_file() parameter
`input`→`filename` to avoid overriding a builtin method.

I also replaced the `assert` lines with explicit checks, because
`assert`s are stripped out when the Python interpreter is run with -OO.

 * FIXES an issue with verification of detached signatures whose
   datafiles are read from stdin.
2013-12-04 10:02:08 +00:00
Isis Lovecruft b90d3b6414
Clarify a bit of and/or logic in _parsers._check_options(). 2013-12-04 10:01:05 +00:00
Isis Lovecruft af93c4caaf
Remove unicode characters preventing manpage and LaTeX Sphinx builds. 2013-12-04 08:48:56 +00:00
Isis Lovecruft 48a43435f0
Update setup.py docs requires: repoze.sphinx → sphinxcontrib-fulltoc. 2013-12-04 00:35:28 +00:00
Isis Lovecruft 0a13554d92
Remove dependency_link print statements from setup.py. 2013-12-04 00:34:32 +00:00