1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 20:50:53 -08:00
Commit graph

13 commits

Author SHA1 Message Date
Daiki Ueno
29757844e5 Set file modes of pinentry socket for extra safety
* lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'.
(pinentry-start): Change the file modes of the socket file to 0700.
This is just for extra safety since the parent directory is already
protected with `server-ensure-safe-dir'.
2016-02-22 11:49:19 +09:00
Daiki Ueno
5e34c3671a Revert "Change the default socket location for pinentry"
This reverts commit e34fbdee8a.
It turned out that the address is fixed in Pinentry itself.
2016-02-22 10:45:53 +09:00
Daiki Ueno
e34fbdee8a Change the default socket location for pinentry
* lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'.
(pinentry--socket-dir): Change the default from /tmp/emacsXXX to
~/.emacs.d/pinentry.
(pinentry-start): Change the file modes of the socket file to 0700.
This is just for extra safety since the parent directory is already
protected with `server-ensure-safe-dir'.
2016-02-22 06:17:29 +09:00
Daiki Ueno
5f8965839d Mention how to enable pinentry feature
* etc/NEWS: Mention "gpgconf --reload gpg-agent".
* lisp/net/pinentry.el: Likewise.
2016-02-22 06:17:29 +09:00
Paul Eggert
0e963201d0 Update copyright year to 2016
Run admin/update-copyright.
2016-01-01 01:34:24 -08:00
Daiki Ueno
ddd0eada66 Suppress redundant Pinentry startup messages
* lisp/net/pinentry.el (pinentry-start): Add optional QUIET
argument.
* lisp/epg.el: Declare `pinentry-start'.
(epg--start): Call `pinentry-start' with QUIET argument set.
2015-11-06 10:56:49 +09:00
Daiki Ueno
85bc107458 pinentry.el: Add debugging support
* lisp/net/pinentry.el (pinentry-debug): New variable.
(pinentry-debug-buffer): New variable.
(pinentry--process-filter): Send input to the debug buffer, if
`pinentry-debug' is set.
2015-08-19 11:40:44 +09:00
Daiki Ueno
93fb1783a9 pinentry.el: Improve multiline prompt
* lisp/net/pinentry.el (pinentry--prompt): Simplify the interface.
(pinentry--process-filter): Use `pinentry--prompt' for CONFIRM
command.
2015-08-19 11:39:03 +09:00
Daiki Ueno
9a1175cb0a Revert "pinentry.el: Support external passphrase cache"
This reverts commit e086e55a66.
pinentry.el shouldn't directly interact with the secrets service,
but ask the caller to cache the passphrase.
2015-08-18 15:05:40 +09:00
Daiki Ueno
e086e55a66 pinentry.el: Support external passphrase cache
* lisp/net/pinentry.el (pinentry-use-secrets): New user option.
(pinentry--allow-external-password-cache): New local variable.
(pinentry--key-info): New local variable.
(secrets-enabled, secrets-search-items, secrets-get-secret):
Declare.
(pinentry--send-passphrase): New function, split from
`pinentry--process-filter'.
(pinentry--process-filter): Use secrets.el to retrieve passphrase
from login keyring.
2015-08-18 11:55:26 +09:00
Daiki Ueno
3a23c477d9 ; pinentry.el: Update header comment and fix typos 2015-08-18 11:20:10 +09:00
Daiki Ueno
9bc757830a pinentry.el: Popup window for multiline prompt
* lisp/net/pinentry.el (pinentry): New custom group.
(pinentry-popup-prompt-window): New user option.
(pinentry-prompt-window-height): New user option.
(pinentry--prompt-buffer): New variable.
(pinentry-prompt-mode-map): New variable.
(pinentry-prompt-mode): New function.
(pinentry--prompt): New function.
(pinentry--process-filter): Use `pinentry--prompt' instead of
`read-passwd' and `y-or-n-p'.
2015-08-18 11:09:29 +09:00
Daiki Ueno
dbc192b4c2 Add pinentry.el for better GnuPG integration
* lisp/pinentry.el: New file.
* etc/NEWS: Add entry about pinentry.el.
* lisp/epg.el (epg--start): Set INSIDE_EMACS envvar.

Fixes: debbugs:20550
2015-06-18 10:22:38 +09:00