Commit Graph

81 Commits

Author SHA1 Message Date
Roman Zeyde
8107e6378c Don't use sys.argv for device name parsing 2021-11-05 10:03:22 +02:00
Roman Zeyde
69c5c57489 Support "fast-path" key listing
https://dev.gnupg.org/rG40da61b89b62dcb77847dc79eb159e885f52f817#change-o4DEJvEV1Dx2

Also, refactor decoding and add a few tests.
2021-11-02 09:22:19 +02:00
Roman Zeyde
b9db213912 Use Popen.communicate to get stdout from subprocess 2021-11-01 14:07:02 +02:00
Roman Zeyde
6c2b880b7d Support daemonization of GPG agent 2021-11-01 14:07:02 +02:00
Roman Zeyde
ee4b1fcdb6 Multiple style fixes 2021-10-22 19:47:15 +03:00
Roman Zeyde
a0e7aae1d2 Enable isort check in tox 2021-05-22 21:54:20 +03:00
Roman Zeyde
a12202d809 Move decompression into device.pubkey() 2020-09-24 14:41:50 +03:00
onlykey
e1bbdb4bcc Replace 'ed25519' by 'pynacl' 2020-08-05 08:51:40 +03:00
Michael Parks
362ddcc707 Quote PATH when writing agent invocation script
If the PATH contains spaces, the agent invocation script will fail parsing. This quotes the variable so that spaces don't break the script.
2020-05-17 00:41:56 -06:00
Roman Zeyde
52d840cbbb Initialize passphrase cache at UI c-tor 2020-04-29 22:01:06 +03:00
Roman Zeyde
15b0218bf2 Default GPG key creation time to 0 (i.e. Jan 1 1970) 2019-10-29 09:14:26 +02:00
Roman Zeyde
ab6892f42f Fix pylint warnings 2019-10-26 13:47:29 +03:00
Roman Zeyde
e437591dd5 Fix prompt for symmetric encryption passphrase 2019-03-03 22:51:15 +02:00
André Vitor de Lima Matos
94ad9648f8 Fix passphrase cache
Broken since 2cb64991c3
Fix #284
2019-02-23 17:42:08 -03:00
Roman Zeyde
fec84288be gpg: --homedir should come before --list-secret-keys 2018-10-27 18:15:29 +03:00
Roman Zeyde
eed168341c Don't inheric from 'object' (after deprecating Python 2.x support) 2018-07-25 13:44:55 +03:00
Roman Zeyde
4968ca7ff3 Merge branch 'master' into neopg-wip 2018-07-01 13:52:37 +03:00
Roman Zeyde
36cbba6c57 Fix a few lint issues 2018-07-01 12:49:39 +03:00
Roman Zeyde
6afe20350b Simplify GPG command generation 2018-07-01 12:12:16 +03:00
Roman Zeyde
f0bda9a3e6 Allow using $PATH when looking for GPG binary
It's needed for running neopg (instead of gnupg).
2018-07-01 12:05:25 +03:00
Roman Zeyde
3b9c00e02a Default to $GNUPGHOME when not specified on commandline 2018-07-01 11:46:16 +03:00
Roman Zeyde
dcee59a19e Assume NeoPG binary runs GnuPG functionality 2018-07-01 11:32:02 +03:00
Roman Zeyde
a274de30b8 Parse NeoPG development versions
e.g. v0.0.5-37-g1fe5046-dirty
2018-06-30 13:05:21 +03:00
Roman Zeyde
4fe9e437ad Simplify GPG homedir setting 2018-06-30 13:03:30 +03:00
Roman Zeyde
d04527a8ed Replace GPG version assertion by an error log
since NeoPG uses different versioning
2018-06-30 13:02:50 +03:00
Roman Zeyde
3329c29cb4 Use gpg_command() for identity generation 2018-06-30 12:50:55 +03:00
Roman Zeyde
df2cb52f8d fixup! Reply with an ERR to SCD SERIALNO openpgp ASSUAN command 2018-06-30 12:49:59 +03:00
Roman Zeyde
f36ef4ffe0 Allow running NeoPG binary (instead of GnuPG) 2018-06-30 12:44:17 +03:00
Roman Zeyde
f74de828fc Reply with an ERR to SCD SERIALNO openpgp ASSUAN command
(for NeoPG)
2018-06-30 12:10:37 +03:00
Roman Zeyde
912b1cde7a Add support for file-descriptor-based socket server
(for NeoPG)
2018-06-30 12:10:03 +03:00
Roman Zeyde
1e6c4e6930 Add links to SSH/GPG usage examples 2018-06-30 11:21:47 +03:00
Roman Zeyde
3d1639d271 gpg: require symmetric passphrase re-entry 2018-04-25 11:18:13 +03:00
Roman Zeyde
bea899d1ef gpg: allow symmetric encryption with a passphrase 2018-04-25 11:09:58 +03:00
Roman Zeyde
ccc2174775 gpg: allow more verbose output during GnuPG pubkey import 2018-04-25 00:16:27 +03:00
Roman Zeyde
afa3fdb89c gpg: allow setting passphrase cache expriration duration 2018-04-25 00:12:34 +03:00
Roman Zeyde
b1bd6cb690 gpg: refactor GETINFO handling into a separate method 2018-04-23 22:59:11 +03:00
Roman Zeyde
bc691ae795 gpg: fix method's caching 2018-04-16 12:38:28 +03:00
Roman Zeyde
2e0cfc8088 gpg: fail if new identity is missing 2018-04-08 16:20:55 +03:00
Roman Zeyde
5dba12f144 gpg: don't clear options on RESET assuan command 2018-03-14 13:55:59 +02:00
Roman Zeyde
0699273d49 util: move ASSUAN serialization to break circular import 2018-03-11 15:11:02 +02:00
Roman Zeyde
d0497b0137 pinentry: specify device name at PIN/passphrase entry UI 2018-03-10 22:11:26 +02:00
Roman Zeyde
870152a7af gpg: allow specifying custom homedir during init 2018-03-10 18:39:56 +02:00
Roman Zeyde
0c9fc33757 gpg: replace gpg-agent.conf by run-agent.sh 2018-03-08 17:47:16 +02:00
Roman Zeyde
17ea941add gpg: use pinentry UI for initialization and agent 2018-03-08 17:47:14 +02:00
Roman Zeyde
04627f0899 gpg: collect OPTIONs from agent 2018-03-06 11:02:39 +02:00
Roman Zeyde
4a9140c42d Merge branch 'serge' 2018-02-24 21:07:42 +02:00
Roman Zeyde
199fb299c3 gpg: use 'sys.exit' and log homedir 2018-02-24 20:46:04 +02:00
Roman Zeyde
34ea224290 gpg: the scripts should be only user-readable 2018-02-20 21:21:45 +02:00
Serge Pokhodyaev
a32bfc749b don't overwrite homedir 2018-02-18 20:24:22 +03:00
Roman Zeyde
bf294beb56 gpg: decode stdout as UTF-8 2018-01-30 20:18:19 +02:00