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
Isis Lovecruft
2fb88ad6b4
Fix function verify_file() to handle detached signature files.
2013-04-16 23:09:05 +00:00
Isis Lovecruft
301fd6f89c
Clean up the logging statements in _sign_file().
2013-04-16 23:07:37 +00:00
Isis Lovecruft
70b8269aaf
Remove one of the sources of the UnicodeDecodeErrors on Python2.6.
2013-04-16 23:06:42 +00:00
Isis Lovecruft
5d94acce83
Add _is_hex() function to parsers.py for checking keyid/fingerprints.
2013-04-16 23:04:30 +00:00
Isis Lovecruft
807aa9821b
Make log statements in _copy_data() more explicit.
2013-04-16 22:45:33 +00:00
Isis Lovecruft
07310a860e
Move _make_binary_stream() to util module and update unittests.
2013-04-15 01:42:55 +00:00
Isis Lovecruft
a1f9d57cf8
Update setup.py.
2013-04-15 01:30:00 +00:00
Isis Lovecruft
998a9b8f88
Update and add new uniitests.
2013-04-15 01:29:44 +00:00
Isis Lovecruft
aaa492b75b
Update assertions and docstrings for unittests.
2013-04-15 01:28:25 +00:00
Isis Lovecruft
c01038df43
Add dreb's ListPackets class to parsers.py.
2013-04-15 01:27:04 +00:00
Isis Lovecruft
7eaffa884f
Update class Verify docstrings in parsers.py.
2013-04-15 01:26:43 +00:00
Isis Lovecruft
aa96003b26
Update docstrings for class Sign in parsers.py.
2013-04-15 01:26:01 +00:00
Isis Lovecruft
03a9566e0a
Update class Crypt in parsers.py.
2013-04-15 01:25:30 +00:00
Isis Lovecruft
8133ff0cc3
Add Verify class to parsers.py.
2013-04-15 01:24:51 +00:00
Isis Lovecruft
f1b5fbc19e
Update docstring for parsers._sanitise_list().
2013-04-15 01:24:04 +00:00
Isis Lovecruft
c2fa9de80a
Refactor function parsers._sanitise().
2013-04-15 01:23:27 +00:00
Isis Lovecruft
1abffa966d
Update docstring for parsers._sanitise().
2013-04-15 01:22:23 +00:00
Isis Lovecruft
2a3849e9a3
Update docstring for parsers._sanitise().
2013-04-15 01:21:47 +00:00
Isis Lovecruft
13580ccac8
Remove excess whitespace.
2013-04-15 01:20:56 +00:00
Isis Lovecruft
719a5068e9
Update docstring for parsers._sanitise().
2013-04-15 01:20:16 +00:00
Isis Lovecruft
394dca8ddc
Make a logger statement more specific.
2013-04-15 01:19:49 +00:00
Isis Lovecruft
a74a5ded93
Allow option '--secret-keyring'.
2013-04-15 01:19:26 +00:00
Isis Lovecruft
72e03a961b
Allow options '--armor' and '--armour'.
2013-04-15 01:18:53 +00:00
Isis Lovecruft
0b1f20c102
Update docstring for parsers._is_allowed().
2013-04-15 01:18:24 +00:00