pyassuan.git
11 years agoclient: add Unix-socket handling to .connect() and .disconnect().
W. Trevor King [Sun, 7 Oct 2012 19:53:44 +0000 (15:53 -0400)]
client: add Unix-socket handling to .connect() and .disconnect().

11 years agoclient: fix devolpment -> development typo in AssuanClient docstring.
W. Trevor King [Sun, 7 Oct 2012 19:40:08 +0000 (15:40 -0400)]
client: fix devolpment -> development typo in AssuanClient docstring.

11 years agoLog warnings if the server receivers unknown commands.
W. Trevor King [Sun, 27 May 2012 11:58:14 +0000 (07:58 -0400)]
Log warnings if the server receivers unknown commands.

11 years agoHandle SETQUALITYBAR and SETQUALITYBAR_TT in pinentry.py.
W. Trevor King [Sun, 27 May 2012 11:52:44 +0000 (07:52 -0400)]
Handle SETQUALITYBAR and SETQUALITYBAR_TT in pinentry.py.

If you want to see these settings in action, run something like:

  $ gpg --edit-key 12345678
  gpg> passwd

The new pinentry code no longer crashes when it gets SETQUALITYBAR
commands, but it doesn't use the QUALITY inquiry to test passphrases
yet.

11 years agoAllow lowercase letters in percent-escapes.
W. Trevor King [Sun, 27 May 2012 11:48:11 +0000 (07:48 -0400)]
Allow lowercase letters in percent-escapes.

I got `SETQUALITYBAR Quality%3a` from gpg-agent 2.0.17.

11 years agoBump to version 0.2. v0.2
W. Trevor King [Sat, 21 Apr 2012 18:32:29 +0000 (14:32 -0400)]
Bump to version 0.2.

11 years agoAdd reference to gpgme-tool to the README.
W. Trevor King [Sat, 21 Apr 2012 18:17:17 +0000 (14:17 -0400)]
Add reference to gpgme-tool to the README.

11 years agoUse bytes for 'D' response parameters in pinentry.py.
W. Trevor King [Sat, 21 Apr 2012 17:03:10 +0000 (13:03 -0400)]
Use bytes for 'D' response parameters in pinentry.py.

11 years agoNo b'...'.format() method (see http://bugs.python.org/issue3982).
W. Trevor King [Sat, 21 Apr 2012 16:54:46 +0000 (12:54 -0400)]
No b'...'.format() method (see bugs.python.org/issue3982).

11 years agoA few more fixes for the str -> bytes conversion.
W. Trevor King [Sat, 21 Apr 2012 16:33:31 +0000 (12:33 -0400)]
A few more fixes for the str -> bytes conversion.

11 years agoNo binary 'D ' requests from the client.
W. Trevor King [Sat, 21 Apr 2012 16:29:21 +0000 (12:29 -0400)]
No binary 'D ' requests from the client.

11 years agoAdd send_fds and receive_fds functions.
W. Trevor King [Sat, 21 Apr 2012 15:51:08 +0000 (11:51 -0400)]
Add send_fds and receive_fds functions.

These will need Python 3.3 for sendmsg and recvmsg, but I already
copied over the code from the Python docs, so I'm committing it now
;).

12 years agoHold all client/server communication explicitly in bytes.
W. Trevor King [Fri, 20 Apr 2012 05:45:58 +0000 (01:45 -0400)]
Hold all client/server communication explicitly in bytes.

12 years agoFix pgp-mime -> pyassuan in README (copy errors :p).
W. Trevor King [Fri, 20 Apr 2012 05:09:51 +0000 (01:09 -0400)]
Fix pgp-mime -> pyassuan in README (copy errors :p).

12 years agoChange my email address from drexel.edu to tremily.us.
W. Trevor King [Wed, 18 Apr 2012 17:21:15 +0000 (13:21 -0400)]
Change my email address from drexel.edu to tremily.us.

12 years agoRemove override_ttyname option from PinEntry.
W. Trevor King [Sun, 25 Mar 2012 13:13:32 +0000 (09:13 -0400)]
Remove override_ttyname option from PinEntry.

A better solution for keeping pinentry bound to a single terminal is
to use --ttyname, --display, --keep-tty, and --keep-display when
spawning gpg-agent.

12 years agoAdd AUTHORS to .gitignore (generated by update-copyright.py).
W. Trevor King [Sun, 25 Mar 2012 10:56:34 +0000 (06:56 -0400)]
Add AUTHORS to .gitignore (generated by update-copyright.py).

12 years agoRun update-copyright.py.
W. Trevor King [Sun, 25 Mar 2012 10:55:55 +0000 (06:55 -0400)]
Run update-copyright.py.

12 years agoAdd COPYING and .update-copyright.conf.
W. Trevor King [Sun, 25 Mar 2012 10:55:13 +0000 (06:55 -0400)]
Add COPYING and .update-copyright.conf.

12 years agoAdd AssuanClient.send_data().
W. Trevor King [Sat, 24 Mar 2012 22:05:39 +0000 (18:05 -0400)]
Add AssuanClient.send_data().

12 years agoAdd return-value checking to AssuanClient response handling.
W. Trevor King [Sat, 24 Mar 2012 20:07:11 +0000 (16:07 -0400)]
Add return-value checking to AssuanClient response handling.

This makes calling code more Pythonic (catch is better than check ;).

12 years agoMake AssuanClient.make_request() responses optional.
W. Trevor King [Sat, 24 Mar 2012 15:47:47 +0000 (11:47 -0400)]
Make AssuanClient.make_request() responses optional.

12 years agoMention gpg-connect-agent in the README.
W. Trevor King [Sat, 24 Mar 2012 13:03:46 +0000 (09:03 -0400)]
Mention gpg-connect-agent in the README.

12 years agoFix ttyname override (better logging, look at GPG_TTY, not TTY_NAME).
W. Trevor King [Sat, 24 Mar 2012 01:10:26 +0000 (21:10 -0400)]
Fix ttyname override (better logging, look at GPG_TTY, not TTY_NAME).

12 years agoFix a couple of syntax goofs.
W. Trevor King [Sat, 24 Mar 2012 01:01:21 +0000 (21:01 -0400)]
Fix a couple of syntax goofs.

12 years agoAdd override_ttyname option to PinEntry.
W. Trevor King [Sat, 24 Mar 2012 00:59:35 +0000 (20:59 -0400)]
Add override_ttyname option to PinEntry.

12 years agoIn make_request, AssuanClient has no attribute 'stop'.
W. Trevor King [Fri, 23 Mar 2012 01:40:00 +0000 (21:40 -0400)]
In make_request, AssuanClient has no attribute 'stop'.

12 years agoAssuanClient.make_request() now raises an error on 'ERR'.
W. Trevor King [Thu, 22 Mar 2012 20:54:15 +0000 (16:54 -0400)]
AssuanClient.make_request() now raises an error on 'ERR'.

That way you don't have to check yourself.

12 years agoLooks like gpg does the heavy lifting internally.
W. Trevor King [Thu, 22 Mar 2012 20:53:20 +0000 (16:53 -0400)]
Looks like gpg does the heavy lifting internally.

gpg-agent just handles passphrase entry and caching.

12 years agoAdd packaging (README and setup.py).
W. Trevor King [Thu, 22 Mar 2012 19:50:21 +0000 (15:50 -0400)]
Add packaging (README and setup.py).

12 years agoBreak pinentry.py out of my blog and use it to start pyassuan.
W. Trevor King [Thu, 22 Mar 2012 19:34:07 +0000 (15:34 -0400)]
Break pinentry.py out of my blog and use it to start pyassuan.

12 years agoAdd dummy --display argument to pinentry.py so it doesn't crash when called from X.
W. Trevor King [Wed, 7 Dec 2011 19:10:38 +0000 (14:10 -0500)]
Add dummy --display argument to pinentry.py so it doesn't crash when called from X.

12 years agoAdd version and log-level command line options to pinentry.py and log to syslog.
W. Trevor King [Fri, 2 Dec 2011 14:52:37 +0000 (09:52 -0500)]
Add version and log-level command line options to pinentry.py and log to syslog.

12 years agoAdd pinentry.py and mention it in gpg-agent post.
W. Trevor King [Fri, 2 Dec 2011 14:23:24 +0000 (09:23 -0500)]
Add pinentry.py and mention it in gpg-agent post.