unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9112: 24.0.50; EasyPG - creating new gpg-encrypted files fails
@ 2011-07-18  2:53 Roland Winkler
  2011-08-01  2:28 ` Daiki Ueno
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Winkler @ 2011-07-18  2:53 UTC (permalink / raw)
  To: 9112

With Emacs 23 I could create new gpg-encrypted files by simply
giving the file name the extension .gpg. Then emacs would ask me
which public keys to use for encryption. Now emacs will pop up a
pinentry window which doesn't do anything useful. Whatever I enter
there results in the error message

 Opening output file: Encrypt failed: ((exit))

But I cannot select anymore the public keys I want to use for
encryption. The bottom line is that I don't know anymore what I
could / should do to create new gpg-encrypted files.



In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2011-07-16 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: en_GB.utf8
  value of $LANG: en_US.ISO-8859-15
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-9-unix
  default enable-multibyte-characters: t





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#9112: 24.0.50; EasyPG - creating new gpg-encrypted files fails
  2011-07-18  2:53 bug#9112: 24.0.50; EasyPG - creating new gpg-encrypted files fails Roland Winkler
@ 2011-08-01  2:28 ` Daiki Ueno
  2011-08-01 15:10   ` Roland Winkler
  0 siblings, 1 reply; 4+ messages in thread
From: Daiki Ueno @ 2011-08-01  2:28 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 9112

"Roland Winkler" <winkler@gnu.org> writes:

> With Emacs 23 I could create new gpg-encrypted files by simply
> giving the file name the extension .gpg. Then emacs would ask me
> which public keys to use for encryption.

The default value of epa-file-select-keys has changed from nil to
'silent in Emacs 24, which means symmetric encryption is now default.
You could set the variable to nil for the compatible behavior.  However,

> Now emacs will pop up a pinentry window which doesn't do anything
> useful. Whatever I enter there results in the error message
>
>  Opening output file: Encrypt failed: ((exit))

this sounds strange.  Do you mean that you are not able to encrypt a
file even with symmetric encryption?

Regards,
-- 
Daiki Ueno





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#9112: 24.0.50; EasyPG - creating new gpg-encrypted files fails
  2011-08-01  2:28 ` Daiki Ueno
@ 2011-08-01 15:10   ` Roland Winkler
  2011-08-01 21:32     ` Daiki Ueno
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Winkler @ 2011-08-01 15:10 UTC (permalink / raw)
  To: Daiki Ueno; +Cc: 9112

On Mon Aug 1 2011 Daiki Ueno wrote:
> "Roland Winkler" <winkler@gnu.org> writes:
> > With Emacs 23 I could create new gpg-encrypted files by simply
> > giving the file name the extension .gpg. Then emacs would ask me
> > which public keys to use for encryption.
> 
> The default value of epa-file-select-keys has changed from nil to
> 'silent in Emacs 24, which means symmetric encryption is now default.
> You could set the variable to nil for the compatible behavior.  

I see. Just curious: what was the reason for this change? I browsed
emacs-devel and bug-gnu-emacs (and etc/NEWS), but I could not find
anything.

> > Now emacs will pop up a pinentry window which doesn't do anything
> > useful. Whatever I enter there results in the error message
> >
> >  Opening output file: Encrypt failed: ((exit))
> 
> However, this sounds strange. Do you mean that you are not able to
> encrypt a file even with symmetric encryption?

Oh, now I see: the pinentry window completely confused me as it was
not particularly verbose concerning the context of its appearence.
It simply asked "Enter passphrase", but it did not say how the
passphrase would be used. -- This is something that has annoyed me
various times, but it is really not (not only) an emacs issue, but
it applies also to gpg.

...Well, it would be nice if either gpg or emacs could tell the user
that the file the user wants to save is just about to go through
symmetric encryption (and not any other encryption mechanism the
user might hope for). Otherwise, any misunderstanding concerning the
encryption mechanism could imply that a file is essentially lost
after saving.

Roland





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#9112: 24.0.50; EasyPG - creating new gpg-encrypted files fails
  2011-08-01 15:10   ` Roland Winkler
@ 2011-08-01 21:32     ` Daiki Ueno
  0 siblings, 0 replies; 4+ messages in thread
From: Daiki Ueno @ 2011-08-01 21:32 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 9112-done

tags 9112 notabug
thanks

"Roland Winkler" <winkler@gnu.org> writes:

>> The default value of epa-file-select-keys has changed from nil to
>> 'silent in Emacs 24, which means symmetric encryption is now default.
>> You could set the variable to nil for the compatible behavior.  
>
> I see. Just curious: what was the reason for this change? I browsed
> emacs-devel and bug-gnu-emacs (and etc/NEWS), but I could not find
> anything.

I found the bug which caused this change:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7487#49

> ...Well, it would be nice if either gpg or emacs could tell the user
> that the file the user wants to save is just about to go through
> symmetric encryption (and not any other encryption mechanism the
> user might hope for). Otherwise, any misunderstanding concerning the
> encryption mechanism could imply that a file is essentially lost
> after saving.

Right, but some people (Ted and Lars at least) feel the behavior too
verbose.  Maybe pinentry could be improved to display what gpg will do.
Actually I sometimes use gnome-keyring-daemon's gpg-agent support, which
displays two passphrase entries for confirmation and that implies
symmetric encryption.

Regards,
-- 
Daiki Ueno





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-01 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-18  2:53 bug#9112: 24.0.50; EasyPG - creating new gpg-encrypted files fails Roland Winkler
2011-08-01  2:28 ` Daiki Ueno
2011-08-01 15:10   ` Roland Winkler
2011-08-01 21:32     ` Daiki Ueno

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).