From eec650d13faf81b9a588c31f5b4abdcca21ebebc Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Tue, 28 May 2013 08:19:34 +0000 Subject: [PATCH] Add note in TODO about possible bug in GnuPG v1.4.12 with 'Key-Type: default'. --- TODO | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/TODO b/TODO index d752f6d..58e6520 100644 --- a/TODO +++ b/TODO @@ -44,6 +44,53 @@ would likely need to happen here [[gnupg.py:1146]]. This would be necessary for adding a passphrase to the key after passwordless generation in GnuPG>=2.1.0. +** TODO GnuPG==1.4.12 doesn't process "Key-Type: default" in batch files +(python-gnupg)∃!isisⒶwintermute:~/code/riseup/python-gnupg ∴ ipython +WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. + +In [1]: import gnupg +GnuPG logging disabled... + +In [2]: gpg = gnupg.GPG(homedir='./tests/doctests') + +In [3]: key_input = gpg.gen_key_input() + +In [4]: print key_input +Key-Type: default +Key-Length: 4096 +Subkey-Type: default +Name-Email: isis@wintermute +Expire-Date: 2014-05-28 +Name-Real: Autogenerated Key +%commit + + +In [5]: key = gpg.gen_key(key_input) + +In [6]: print key.stderr +gpg: -:1: invalid algorithm +[GNUPG:] KEY_NOT_CREATED + + +In [7]: quit() +(python-gnupg)∃!isisⒶwintermute:~/code/riseup/python-gnupg ∴ which gpg +/usr/bin/gpg +(python-gnupg)∃!isisⒶwintermute:~/code/riseup/python-gnupg ∴ gpg --version +gpg (GnuPG) 1.4.12 +Copyright (C) 2012 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +Home: ~/.gnupg +Supported algorithms: +Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA +Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, + CAMELLIA192, CAMELLIA256 +Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 +Compression: Uncompressed, ZIP, ZLIB, BZIP2 +(python-gnupg)∃!isisⒶwintermute:~/code/riseup/python-gnupg ∴ + * Code cleanup :cleanup: ** TODO in parsers.__sanitise() :cleanup:sanitise: Ughh...this is the ugliest code I think I've ever written. It works, but I