Isis Lovecruft
bdd08fb31f
Remove GPGMeta and GPGBase specific imports from gnupg.py.
2013-05-28 07:39:02 +00:00
Isis Lovecruft
a95a49e04a
Move GPGMeta and GPGBase to _meta.py.
2013-05-28 07:35:15 +00:00
Isis Lovecruft
ecd8faa425
Move re import to GPGWrapper class, it isn't used anywhere else.
2013-05-28 07:33:38 +00:00
Isis Lovecruft
72ef15f5a4
Remove unused logging and tempfile imports from gnupg.py.
2013-05-28 07:32:35 +00:00
Isis Lovecruft
6f9c4c7423
Remove commented out code and unused pprint import.
2013-05-28 07:31:04 +00:00
Isis Lovecruft
60a216a604
Fix a bug where "$ make cleantest" fails while removing tests/random_seed.
2013-05-28 07:28:10 +00:00
Isis Lovecruft
e5634a8907
Add .PHONY alias to Makefile.
2013-05-28 07:27:43 +00:00
Isis Lovecruft
137dddd36c
Ignore MANIFEST and MANIFEST.in files.
2013-05-28 07:24:29 +00:00
Isis Lovecruft
edaf6a138b
Ignore traceback records for tickets also.
2013-05-28 07:24:09 +00:00
Isis Lovecruft
d52c08bae7
Ignore distribute/setuptools PKG-INFO file.
2013-05-28 07:23:47 +00:00
Isis Lovecruft
1d2257db57
Ignore the quilt applied patches directory.
2013-05-28 07:23:11 +00:00
Isis Lovecruft
fd85cb8f5c
Remove commented out _init_decorator() from GPGMeta class.
2013-05-28 07:22:01 +00:00
Isis Lovecruft
d6ac61cc81
Merge branch 'fix/2184-twisted-license' into develop
2013-04-21 08:26:44 +00:00
Isis Lovecruft
85c1cbc0c8
Fix #2184 , add twisted copyright info for the util._which() function.
2013-04-21 08:25:07 +00:00
Isis Lovecruft
fd6dbe71b6
Merge branch 'feature/cleanup-api' into develop
2013-04-17 23:52:10 +00:00
Isis Lovecruft
df5346694d
Get rid of the "--no-show-photos is deprecated" GnuPG warning.
2013-04-17 22:49:09 +00:00
Isis Lovecruft
bd853d3fdb
Make the util module private.
2013-04-17 22:48:07 +00:00
Isis Lovecruft
0bc97dd48b
Move _copy_data(), _write_passphrase(), and _threaded_copy_data() to util.
2013-04-17 22:47:13 +00:00
Isis Lovecruft
72b2d9058e
Fix missing method calls in unittest for GPG.list_keys().
2013-04-17 22:42:38 +00:00
Isis Lovecruft
0801492eaf
Add unittest for _copy_data().
2013-04-17 22:42:31 +00:00
Isis Lovecruft
4e79a29cea
Fix the super() calls in ResultStringIO in unittest script.
2013-04-17 22:39:59 +00:00
Isis Lovecruft
b183f6984a
Add listkeys tests to Makefile command.
2013-04-17 22:38:07 +00:00
Isis Lovecruft
debe70723b
We don't have a default Name-Comment in gen_key anymore, so change unittest.
2013-04-17 21:04:26 +00:00
Isis Lovecruft
aba04d5803
Only create one test directory while running unittests.
2013-04-17 21:03:44 +00:00
Isis Lovecruft
c53be427ca
Remove unused code from the unittest runner.
2013-04-17 21:02:43 +00:00
Isis Lovecruft
0394034236
Add key generation utility functions.
...
* Add util._make_passphrase() for creating a random string passphrase and
optionally writing it to a file only readable by the real uid of the
running process.
* Change the util._today() function to _next_year(), which gives us today's
date a year from now, for setting the default expire date in
GPG.gen_key_input().
2013-04-17 20:58:49 +00:00
Isis Lovecruft
9288f8eead
Add docstring for GPG.gen_key_input().
2013-04-17 20:57:51 +00:00
Isis Lovecruft
a9faa376e7
Update docstring for GPG.genkey().
2013-04-17 20:54:39 +00:00
Isis Lovecruft
faf102e6ac
Remove old commented out code for keyring generation in GPG.__init__().
2013-04-17 20:53:56 +00:00
Isis Lovecruft
4706932275
Merge branch 'fix/2131-unittests' into develop
2013-04-17 00:37:39 +00:00
Isis Lovecruft
f76fa59827
Add parsers.py tests to the "make tests" command in the Makefile.
2013-04-17 00:16:59 +00:00
Isis Lovecruft
56131179c6
Add stub GPG.list_sigs() function.
2013-04-17 00:16:28 +00:00
Isis Lovecruft
9dc2947014
Update docstrings for GPG.decrypt() and GPG.send_keys().
2013-04-17 00:14:06 +00:00
Isis Lovecruft
961b63f958
Add explicit --no-show-photos option to GPG.list_keys() just in case.
2013-04-17 00:12:18 +00:00
Isis Lovecruft
8dcf49fa95
Catch OSErrors and IOErrors also in util._is_file if input does not exist.
2013-04-17 00:10:52 +00:00
Isis Lovecruft
0b9ee78d20
Add tests for detached signature verification.
2013-04-17 00:09:45 +00:00
Isis Lovecruft
1a0d27636b
More string shuffling.
2013-04-17 00:09:21 +00:00
Isis Lovecruft
f369f2e822
Add the cypherpunk manifesto as a lorem ipsum dolor for unittests.
2013-04-17 00:00:47 +00:00
Isis Lovecruft
e631272ce6
Fix unittest for checking that signing a file works.
2013-04-16 23:59:29 +00:00
Isis Lovecruft
7ff7807068
Some trivial string and docstring changes.
2013-04-16 23:58:32 +00:00
Isis Lovecruft
4b45fede16
Add unittests for parsers._fix_unsafe() and parsers._is_hex().
...
* The _fix_unsafe() unittest proves that the original vulnerability in
GPG._open_subprocess(..., shell=True, ...) is handled correctly.
2013-04-16 23:54:23 +00:00
Isis Lovecruft
d5985ddd87
Add check in signature string verfication unittest for signature timestamps.
2013-04-16 23:52:26 +00:00
Isis Lovecruft
f325e735f9
Add a missing underscore to a call to gpg.decode_errors in Sign().
2013-04-16 23:44:36 +00:00
Isis Lovecruft
1d0853f023
Remove excess whitespace.
2013-04-16 23:44:20 +00:00
Isis Lovecruft
59b7e99465
Fix another bug which was raising UnicodeDecodeErrors due to no encoding found.
2013-04-16 23:13:52 +00:00
Isis Lovecruft
06662b98b0
Add class attribute docstrings to Verify().
2013-04-16 23:13:21 +00:00
Isis Lovecruft
ac64749533
Fix several bugs in the options parser, and split the _sanitise() function.
2013-04-16 23:12:23 +00:00
Isis Lovecruft
6b6ea0e9d1
Fix a bug in the options checker which tried to call util._is_file().
2013-04-16 23:10:59 +00:00
Isis Lovecruft
b23812d14c
Add option '--no-show-photos' to allowed options.
2013-04-16 23:10:38 +00:00
Isis Lovecruft
bada24f8e4
Remove resolved TODO comments.
2013-04-16 23:10:22 +00:00