Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bug#14380: [gmane.emacs.bugs] bug#14380: 24.3; `network-stream-open-tls' fails in some imap servers on w32

5 views
Skip to first unread message

João Távora

unread,
May 18, 2013, 9:05:47 AM5/18/13
to Ted Zlatanov, 14...@debbugs.gnu.org
On Sat, May 18, 2013 at 1:33 PM, Ted Zlatanov <t...@lifelogs.com> wrote:
> Sorry, I forgot to CC the two of you and the post just went to the bug
> list. I didn't know if you'd see it so this is just a courtesy CC.
>
> Ted
>
>
>
> ---------- Forwarded message ----------
> From: Ted Zlatanov <t...@lifelogs.com>
> To: 14...@debbugs.gnu.org
> Cc:
> Date: Fri, 17 May 2013 09:12:05 -0400
> Subject: bug#14380: 24.3; `network-stream-open-tls' fails in some imap servers on w32
> On Fri, 10 May 2013 21:44:12 +0100 João Távora <joaot...@gmail.com> wrote:
>
> JT> Honestly I thought builtin tls was some kind of tls library in elisp.
> JT> Needing external libraries doesn't make it very builtin :-), but
> JT> that's just my opinion.
>
> Implementing TLS in ELisp is possible, sure, but it would be extremely
> slow and there's considerable risk in reimplementing that protocol. We
> chose to use GnuTLS instead, which is a fast reliable C implementation
> and is available for W32 and all our other platforms.

lol, I wasn't suggesting implementing it in elisp at all, I just read
built-in and assumed in was either statically linked in C or elisp. The
point it that needing external libraries which are not always bundled
doesn't make it very "builtin". But naming things, along with cache
invalidation,
is a a hard problem in programming :-)

> I've seen dozens of bugs related to "almost working" external TLS
> binaries on all platforms.

Yes, but have you looked closely at this particular one? The point is rather
to increase robustness. That is, `open-tls-stream` could/should promise
to cleanup the process buffer of its handshake garbage, so that future
functions that use that resource don't see it and don't get confused by it.

I'm assuming they don't need to see it, I might be wrong.

But if I'm right and that fix is performed then you've effectively extended
"imap just works" the set of W32 emacs users who type "M-x gnus" on a
vanilla emacs in a system with some cygwin installation in PATH. Maybe it's
a small set but I'm in it (when I'm at work).

> GnuTLS integration with Emacs. My vote is to require GnuTLS with Emacs
> and to only support it, but there are some questions there, mainly for
> W32 and Mac OS X: do we auto-update GnuTLS? What happens when the
> GnuTLS we install conflicts with another system install? And so on...

That's all fine, I guess. I vote for that too :-)

Thanks,
João



Ted Zlatanov

unread,
May 18, 2013, 11:17:02 PM5/18/13
to João Távora, Eli Zaretskii, 14...@debbugs.gnu.org, emacs...@gnu.org
(CC to emacs-devel as I think this discussion is relevant there)

On Sat, 18 May 2013 14:05:47 +0100 João Távora <joaot...@gmail.com> wrote:

JT> The point [is] that needing external libraries which are not always
JT> bundled doesn't make it very "builtin".

I'm not bringing GnuTLS into the Emacs source tree, which is the only
other way to make it built-in functionality. I understand there are
issues with external dependencies and in fact I asked that we bundle the
GnuTLS W32 DLLs with the W32 Emacs builds. That led to a long
discussions about how that makes security our responsibility and how we
then need to deal with GnuTLS updates, and I didn't have a strong desire
to become a W32 distribution expert since I barely know that platform.
No one else picked it up, and there we are with "install it yourself" as
the recommended way to get GnuTLS to work on W32.

>> I've seen dozens of bugs related to "almost working" external TLS
>> binaries on all platforms.

JT> Yes, but have you looked closely at this particular one? The point is rather
JT> to increase robustness. That is, `open-tls-stream` could/should promise
JT> to cleanup the process buffer of its handshake garbage, so that future
JT> functions that use that resource don't see it and don't get confused by it.

JT> I'm assuming they don't need to see it, I might be wrong.

I'm not able to fix this bug or work on bugs in the external SSL/TLS support.

JT> But if I'm right and that fix is performed then you've effectively extended
JT> "imap just works" the set of W32 emacs users who type "M-x gnus" on a
JT> vanilla emacs in a system with some cygwin installation in PATH. Maybe it's
JT> a small set but I'm in it (when I'm at work).

Wouldn't you rather get GnuTLS to work by default? Otherwise we serve
the use case "I have no secure transport, so let me use a hack by
default."

>> GnuTLS integration with Emacs. My vote is to require GnuTLS with Emacs
>> and to only support it, but there are some questions there, mainly for
>> W32 and Mac OS X: do we auto-update GnuTLS? What happens when the
>> GnuTLS we install conflicts with another system install? And so on...

JT> That's all fine, I guess. I vote for that too :-)

The big problem for me is that I don't have the time or platform
knowledge to write a GnuTLS auto-installer and updater for those two
problematic platforms. The GnuTLS developers don't want to provide this
service either. Who will be responsible to it? What happens when a
security vulnerability hits the DLLs we distribute with Emacs?

My proposal would be to push out the next Emacs bundled with the latest
GnuTLS DLLs, only support GnuTLS, provide users with instructions on
updating them, and treat GnuTLS vulnerabilities as Emacs
vulnerabilities. This is not ideal but IMO better than the current
situation.

Ted



João Távora

unread,
May 19, 2013, 7:45:12 AM5/19/13
to Ted Zlatanov, 14...@debbugs.gnu.org, emacs...@gnu.org
On Sun, May 19, 2013 at 4:17 AM, Ted Zlatanov <t...@lifelogs.com> wrote:
> GnuTLS W32 DLLs with the W32 Emacs builds. That led to a long
> discussions about how that makes security our responsibility and how we

I see. Indeed, bundling security stuff with your app is increasing
its responsibility manifold.

> Wouldn't you rather get GnuTLS to work by default? Otherwise we serve
> the use case "I have no secure transport, so let me use a hack by
> default."

I don't understand. What is the hack here? External binary for TLS?
But yes, GnuTLS by default is certainly better...

> service either. Who will be responsible to it? What happens when a
> security vulnerability hits the DLLs we distribute with Emacs?
>
> My proposal would be to push out the next Emacs bundled with the latest
> GnuTLS DLLs, only support GnuTLS, provide users with instructions on
> updating them, and treat GnuTLS vulnerabilities as Emacs
> vulnerabilities. This is not ideal but IMO better than the current
> situation.

... but then you have all these headaches.

The fix I proposed aims for the status quo, that is: make external
TLS binary support slightly more robust. My test case is even smaller:

* W32
* cygwin carrying the responsibility burden
* vanilla emacs working with tls/imap/gnus.

Thanks for the time spent in analysing this,
--
João Távora



Eli Zaretskii

unread,
May 19, 2013, 11:32:37 AM5/19/13
to Ted Zlatanov, 14...@debbugs.gnu.org, joaot...@gmail.com
[I removed emacs-devel.]

> From: Ted Zlatanov <t...@lifelogs.com>
> Cc: 14...@debbugs.gnu.org, emacs...@gnu.org
> Date: Sat, 18 May 2013 23:17:02 -0400
>
> (CC to emacs-devel as I think this discussion is relevant there)

There's no reason: all the people who you'd like to reach read the bug
list as well.

> The big problem for me is that I don't have the time or platform
> knowledge to write a GnuTLS auto-installer and updater for those two
> problematic platforms. The GnuTLS developers don't want to provide this
> service either. Who will be responsible to it? What happens when a
> security vulnerability hits the DLLs we distribute with Emacs?
>
> My proposal would be to push out the next Emacs bundled with the latest
> GnuTLS DLLs, only support GnuTLS, provide users with instructions on
> updating them, and treat GnuTLS vulnerabilities as Emacs
> vulnerabilities. This is not ideal but IMO better than the current
> situation.

I see no problems with the current situation. Installing precompiled
GnuTLS from a zip file is a snap.



Eli Zaretskii

unread,
May 19, 2013, 11:44:02 AM5/19/13
to João Távora, 14...@debbugs.gnu.org, t...@lifelogs.com
> From: João Távora <joaot...@gmail.com>
> Date: Sun, 19 May 2013 12:45:12 +0100
> Cc: Eli Zaretskii <el...@gnu.org>, 14...@debbugs.gnu.org, emacs...@gnu.org
>
> The fix I proposed aims for the status quo, that is: make external
> TLS binary support slightly more robust.

I already said at lest twice in this thread: THIS WON'T WORK on
Windows (except in Cygwin Emacs). The communications between the
external TLS client and Emacs are via signals, which aren't really
supported by Windows. Solving this was one of the main reasons for
incorporating GnuTLS into Emacs.

I don't really understand what are we still discussing here. Let me
describe how the current situation looks from my POV:

. Emacs can be built with GnuTLS support if GnuTLS is installed on
the end-user's machine, and that end user builds her own Emacs.
This is the same as on Unix. I hope no one will say this is "not
built-in".

. Windows users get special treatment in that precompiled binaries
of Emacs are available for those who cannot or won't build their
own. These precompiled binaries are built with GnuTLS support to
begin with.

. As yet another bonus for Windows users, Emacs will happily start
and run even if GnuTLS is not found on the end-user's machine;
however, TLS will not be available in that case, of course (Emacs
will announce that if required to use TLS).

So now you tell me how come these two bonuses are somehow regarded as
deficiencies? Would it be better not to produce binaries at all, or
let them abort with a fatal error if GnuTLS is not installed?

Installing GnuTLS boils down to unzipping a single zip archive. How
hard can that be for someone who uses Emacs??




João Távora

unread,
May 19, 2013, 1:57:43 PM5/19/13
to Eli Zaretskii, 14...@debbugs.gnu.org, t...@lifelogs.com
On Sun, May 19, 2013 at 4:44 PM, Eli Zaretskii <el...@gnu.org> wrote:
>> From: João Távora <joaot...@gmail.com>
>> Date: Sun, 19 May 2013 12:45:12 +0100
>> Cc: Eli Zaretskii <el...@gnu.org>, 14...@debbugs.gnu.org, emacs...@gnu.org
>>
>> The fix I proposed aims for the status quo, that is: make external
>> TLS binary support slightly more robust.
>
> I already said at lest twice in this thread: THIS WON'T WORK on
> Windows (except in Cygwin Emacs). The communications between the

Look, there's no need to shout. I'm not using Cygwin emacs, I'm using
regular W32
binaries and am not even sure what tls binary emacs found or how. It
appears to be:

"openssl s_client -connect imaps.mycompany.com:993 -no_ssl2 -ign_eof"

My analysis of the code of `network-stream-open-tls' revealed (as do
the comments)
that it tries to cleanup the process buffer of previous garbage left there by
`open-tls-stream` (who nonetheless tries to place point correctly in
the process
buffer)

I'm **guessing** "openssl" is a cygwin binary, I didn't even check that.
I **reported** a bug since I considered unexpected behaviour occurred even with
the cleanest of "emacs -Q" run.
I **suggested** a fix because of two reasons: (1) I tried it and it
worked and has
been working since (2) in the context of the interaction between the
two functions
`network-stream-open-tls' and `open-tls-stream' it seemed reasonable
that the latter
cleans up after itself.

Maybe, in my reduced usage of gnus, I haven't gotten to a situation
where things would
break because of signal handling or whatever. Lucky me.

When things do break, I'll happily unzip dlls, I have nothing against that.

Thanks for all the info, feel free to close the bug if you haven't already
Over and out,
João



Eli Zaretskii

unread,
May 19, 2013, 3:01:16 PM5/19/13
to João Távora, 14...@debbugs.gnu.org, t...@lifelogs.com
> From: João Távora <joaot...@gmail.com>
> Date: Sun, 19 May 2013 18:57:43 +0100
> Cc: t...@lifelogs.com, 14...@debbugs.gnu.org
>
> On Sun, May 19, 2013 at 4:44 PM, Eli Zaretskii <el...@gnu.org> wrote:
> >> From: João Távora <joaot...@gmail.com>
> >> Date: Sun, 19 May 2013 12:45:12 +0100
> >> Cc: Eli Zaretskii <el...@gnu.org>, 14...@debbugs.gnu.org, emacs...@gnu.org
> >>
> >> The fix I proposed aims for the status quo, that is: make external
> >> TLS binary support slightly more robust.
> >
> > I already said at lest twice in this thread: THIS WON'T WORK on
> > Windows (except in Cygwin Emacs). The communications between the
>
> Look, there's no need to shout.

I'm sorry, but after saying that twice, what other methods do I have
to make sure I'm heard?

> I'm not using Cygwin emacs, I'm using regular W32 binaries

That's exactly what I was talking about: an external tls client will
not work with a native w32 Emacs.

> When things do break, I'll happily unzip dlls, I have nothing against that.

I suggest you do this without waiting for things to break. The
built-in GnuTLS support does work on Windows, there are several happy
users of it here. Why have a partial solution when you can have a
complete one?




Ted Zlatanov

unread,
May 19, 2013, 7:05:22 PM5/19/13
to João Távora, 14...@debbugs.gnu.org, emacs...@gnu.org
On Sun, 19 May 2013 12:45:12 +0100 João Távora <joaot...@gmail.com> wrote:

JT> On Sun, May 19, 2013 at 4:17 AM, Ted Zlatanov <t...@lifelogs.com> wrote:
>> Wouldn't you rather get GnuTLS to work by default? Otherwise we serve
>> the use case "I have no secure transport, so let me use a hack by
>> default."

JT> I don't understand. What is the hack here? External binary for TLS?

Using an external binary to transport SSL or TLS is a hack IMO.

>> My proposal would be to push out the next Emacs bundled with the latest
>> GnuTLS DLLs, only support GnuTLS, provide users with instructions on
>> updating them, and treat GnuTLS vulnerabilities as Emacs
>> vulnerabilities. This is not ideal but IMO better than the current
>> situation.

JT> ... but then you have all these headaches.

It's a headache I'm willing to endure for the sake of Emacs users.

The alternative, which João is enduring now, is to punt the problem.

This is a question for the Emacs maintainers: do you agree with me on
the above plan? It would mean changing the way Mac OS X and W32 Emacs
builds are distributed, to include the GnuTLS libraries with the build,
and we'd have to implement a way (perhaps through the ELPA) to
distribute updates to these libraries.

JT> The fix I proposed aims for the status quo, that is: make external
JT> TLS binary support slightly more robust. My test case is even smaller:

JT> * W32
JT> * cygwin carrying the responsibility burden
JT> * vanilla emacs working with tls/imap/gnus.

Did you propose a patch? I would commit a patch but can't write it
despite your great description of the problem.

Ted



Juanma Barranquero

unread,
May 19, 2013, 10:08:57 PM5/19/13
to Ted Zlatanov, 14...@debbugs.gnu.org, João Távora, Emacs developers
On Mon, May 20, 2013 at 1:05 AM, Ted Zlatanov <t...@lifelogs.com> wrote:

> It would mean changing the way Mac OS X and W32 Emacs
> builds are distributed, to include the GnuTLS libraries with the build,
> and we'd have to implement a way (perhaps through the ELPA) to
> distribute updates to these libraries.

Why would that be a good idea now if it wasn't seen as such before?

J



Ted Zlatanov

unread,
May 20, 2013, 9:56:27 AM5/20/13
to Eli Zaretskii, 14...@debbugs.gnu.org, joaot...@gmail.com
On Sun, 19 May 2013 18:32:37 +0300 Eli Zaretskii <el...@gnu.org> wrote:

>> My proposal would be to push out the next Emacs bundled with the latest
>> GnuTLS DLLs, only support GnuTLS, provide users with instructions on
>> updating them, and treat GnuTLS vulnerabilities as Emacs
>> vulnerabilities. This is not ideal but IMO better than the current
>> situation.

EZ> I see no problems with the current situation. Installing precompiled
EZ> GnuTLS from a zip file is a snap.

That's only a small part of the risk and responsibility we're shifting
onto the Emacs users.

Ted



Eli Zaretskii

unread,
May 20, 2013, 12:28:40 PM5/20/13
to Ted Zlatanov, 14...@debbugs.gnu.org, joaot...@gmail.com
> From: Ted Zlatanov <t...@lifelogs.com>
> Cc: 14...@debbugs.gnu.org, joaot...@gmail.com
> Date: Mon, 20 May 2013 09:56:27 -0400
What risk? what responsibility?

A user who installs software on her computer is already trusted with
certain responsibilities, because a single mistyped command or a badly
built package can easily shut down a perfectly healthy system for
hours, if not days. Users install dozens of packages needed to create
a workable environment for whatever they need to accomplish. Why is
GnuTLS so special?

And mind you, in view of the latest sparring between GnuTLS developers
and the FSF (which I have no idea how ended, except that the license
was downgraded a bit and the official site moved), I'm not even sure
the FSF will agree to distribute GnuTLS with Emacs, on any platform.
Why should Emacs development enter this minefield? And for what? for
solving a non-existing problem of installing a simple package? Don't
we have better places to apply our time and energy?

Don't misunderstand me: if someone decides to provide regular builds
of GnuTLS ready to be downloaded and installed, I will applaud that
person. Heck, it will be one less duty for me, for starters, as far
as the Windows binaries are concerned. But please don't represent
this as a must for Emacs, because it isn't.



João Távora

unread,
May 20, 2013, 6:07:30 PM5/20/13
to Ted Zlatanov, 14...@debbugs.gnu.org, emacs...@gnu.org
On Mon, May 20, 2013 at 12:05 AM, Ted Zlatanov <t...@lifelogs.com> wrote:
>
> Using an external binary to transport SSL or TLS is a hack IMO.

I see, and reading a bit of tls.el it makes sense. It does all this
crazy regexp searching... This is a hack in my book too, albeit one
that's been working fine,

> Did you propose a patch? I would commit a patch but can't write it
> despite your great description of the problem.
>

Here is a patch that should be equivalent to the defadvice I'm using.
As I said, it works for me. Also I didn't have a VC copy of emacs so I
used `diff-buffer-with-file'

diff -u -L /usr/local/share/emacs/24.3/lisp/net/tls.el.gz -L
\#\<buffer\ tls.el.gz\> /tmp/jka-com1909LVh
/tmp/buffer-content-1909lpt
--- /usr/local/share/emacs/24.3/lisp/net/tls.el.gz
+++ #<buffer tls.el.gz>
@@ -286,7 +286,11 @@
(format "Host name in certificate doesn't \
match `%s'. Connect anyway? " host))))))
(setq done nil)
- (delete-process process)))
+ (delete-process process))
+ ;; delete all the informational messages that could
+ ;; confuse futures users of `buffer'
+ ;;
+ (delete-region (point-min) (point)))
(message "Opening TLS connection to `%s'...%s"
host (if done "done" "failed"))
(when use-temp-buffer


João
--
João Távora



Ted Zlatanov

unread,
May 24, 2013, 3:48:20 PM5/24/13
to Eli Zaretskii, 14...@debbugs.gnu.org, joaot...@gmail.com
On Mon, 20 May 2013 19:28:40 +0300 Eli Zaretskii <el...@gnu.org> wrote:

>> From: Ted Zlatanov <t...@lifelogs.com>
>> Cc: 14...@debbugs.gnu.org, joaot...@gmail.com
>> Date: Mon, 20 May 2013 09:56:27 -0400
>>
>> On Sun, 19 May 2013 18:32:37 +0300 Eli Zaretskii <el...@gnu.org> wrote:
>>
>> >> My proposal would be to push out the next Emacs bundled with the latest
>> >> GnuTLS DLLs, only support GnuTLS, provide users with instructions on
>> >> updating them, and treat GnuTLS vulnerabilities as Emacs
>> >> vulnerabilities. This is not ideal but IMO better than the current
>> >> situation.
>>
EZ> I see no problems with the current situation. Installing precompiled
EZ> GnuTLS from a zip file is a snap.
>>
>> That's only a small part of the risk and responsibility we're shifting
>> onto the Emacs users.

EZ> What risk? what responsibility?

The risk is that their version of GnuTLS is out of date. The
responsibility is to update it regularly.

EZ> A user who installs software on her computer is already trusted with
EZ> certain responsibilities, because a single mistyped command or a badly
EZ> built package can easily shut down a perfectly healthy system for
EZ> hours, if not days. Users install dozens of packages needed to create
EZ> a workable environment for whatever they need to accomplish. Why is
EZ> GnuTLS so special?

Installing and keeping GnuTLS up to date should not be the
responsibility of the user.

To put it another way, if you want that responsibility, you're in a very
small percentage of the Emacs user population. Most users don't want it
and will neglect it badly.

EZ> And mind you, in view of the latest sparring between GnuTLS developers
EZ> and the FSF (which I have no idea how ended, except that the license
EZ> was downgraded a bit and the official site moved), I'm not even sure
EZ> the FSF will agree to distribute GnuTLS with Emacs, on any platform.
EZ> Why should Emacs development enter this minefield?

That's a reasonable question. I think we have to face it regardless of
the outcome of this discussion because Emacs depends on GnuTLS for SSL
and TLS communications right now.

As far as I know GnuTLS status is back to "kosher."

EZ> And for what? for solving a non-existing problem of installing a
EZ> simple package?

Installing is easy. Keeping it up to date isn't. Security updates are
tedious and tedious things get overlooked.

EZ> Don't misunderstand me: if someone decides to provide regular builds
EZ> of GnuTLS ready to be downloaded and installed, I will applaud that
EZ> person. Heck, it will be one less duty for me, for starters, as far
EZ> as the Windows binaries are concerned. But please don't represent
EZ> this as a must for Emacs, because it isn't.

I see it as a responsibility we're avoiding. But if we had these
regular builds, how would the user know about a critical update he
really must install?

See here http://bugs.python.org/issue17425 for an example of how the
Python community dealt with an security issue in the OpenSSL libraries
they ship for Windows. I guess we have to answer the question of
whether that's a standard we as Emacs developers should aspire to, or
not.

Ted



Eli Zaretskii

unread,
May 24, 2013, 4:27:07 PM5/24/13
to Ted Zlatanov, 14...@debbugs.gnu.org, joaot...@gmail.com
> Date: Fri, 24 May 2013 15:48:20 -0400
>
> EZ> What risk? what responsibility?
>
> The risk is that their version of GnuTLS is out of date.

That happens with dozens of packages on each user's machine. There's
nothing in GnuTLS that makes it unique in this regard.

Moreover, the latest and greatest GnuTLS sometimes simply won't build
on some systems. Like with the latest release, for example. How is
it a good idea to upgrade to a version that is broken? And if the
latest version is not always the one to upgrade to, then who will make
the research required to tell users to which version to upgrade? You?

I did that research for the single version whose Windows port I made
available. I built it, fixed the build problems, tested it, fixed the
problems revealed by that, and after doing all that I could in good
faith tell people they can use that version without too much fear.
Why is it safer for users to upgrade to a newer version than to stay
with the one I tested? Shouldn't whoever wants to tell them to
upgrade invest a similar effort in that newer version? If she
doesn't, she is actually shifting the responsibility to the users
anyway!

> The responsibility is to update it regularly.

Or not. Blindly upgrading could get users in trouble.

> EZ> A user who installs software on her computer is already trusted with
> EZ> certain responsibilities, because a single mistyped command or a badly
> EZ> built package can easily shut down a perfectly healthy system for
> EZ> hours, if not days. Users install dozens of packages needed to create
> EZ> a workable environment for whatever they need to accomplish. Why is
> EZ> GnuTLS so special?
>
> Installing and keeping GnuTLS up to date should not be the
> responsibility of the user.

Says you. But since there's no one else to pick up the gauntlet,
that's where this responsibility will need to rest. If J.R. Hacker
needs GnuTLS today, he has no one else but himself to rely on. All
we, the Emacs developers, do is just talk.

> To put it another way, if you want that responsibility, you're in a very
> small percentage of the Emacs user population. Most users don't want it
> and will neglect it badly.

Again, nothing new or special here.

> As far as I know GnuTLS status is back to "kosher."

Not sure based on what you say this.

> I see it as a responsibility we're avoiding. But if we had these
> regular builds, how would the user know about a critical update he
> really must install?
>
> See here http://bugs.python.org/issue17425 for an example of how the
> Python community dealt with an security issue in the OpenSSL libraries
> they ship for Windows. I guess we have to answer the question of
> whether that's a standard we as Emacs developers should aspire to, or
> not.

I'm sorry, but you are expecting from the Emacs development something
it can never provide in its present shape and form. Tracking security
issues to this degree in even a single package is a very time
consuming job. Unless we have several volunteers on board taking
responsibility for the various packages which Emacs supports, what you
seem to want is nothing more than a pipe dream. I don't see any such
volunteers; in fact, I don't even see a single one. If we had such an
individual, my year-old port would have been replaced by newer ones
already. (Of course, the Windows build in GnuTLS is regularly broken,
so it's not really easy, either.) Until that changes, all this talk
is just a huge waste of energy.

If you think this kind of effort is possible, how about if you present
a complete realistic plan for having a secure Emacs, name individuals
who would test the releases of those packages for security issues, and
make sure any problems that are detected are promptly fixed on all
platforms we support, etc.? Otherwise, let's just stop these endless
discussions and admit that we don't have the resources to live up to
it.



Ted Zlatanov

unread,
Jun 5, 2013, 11:06:52 AM6/5/13
to João Távora, 14...@debbugs.gnu.org, emacs...@gnu.org
On Mon, 20 May 2013 23:07:30 +0100 João Távora <joaot...@gmail.com> wrote:

JT> Here is a patch that should be equivalent to the defadvice I'm using.
JT> As I said, it works for me. Also I didn't have a VC copy of emacs so I
JT> used `diff-buffer-with-file'

I applied something very similar. It's a tiny change so it doesn't
require assignment papers. If you'd like to contribute to GNU Emacs or
other GNU software in the future, I encourage you to file them.

revno: 112858
timestamp: Wed 2013-06-05 11:03:37 -0400
message:
(open-tls-stream): Remove unneeded buffer contents when opening the connection.

This change didn't break anything in my testing. Please test so I can
close the bug if it's fixed for you.

Ted

Glenn Morris

unread,
Jun 5, 2013, 12:42:44 PM6/5/13
to 14...@debbugs.gnu.org, Ted Zlatanov
Ted Zlatanov wrote:

> I applied something very similar. It's a tiny change so it doesn't
> require assignment papers.

Thanks for applying it. If committing changes by others, please make the
ChangeLog entry in their name, and use commit --author.
And because this has a bug number, the ChangeLog entry can use that
rather than an emacs-devel link.

(Seems he already has an assignment BTW).



Ted Zlatanov

unread,
Jun 5, 2013, 2:10:47 PM6/5/13
to Glenn Morris, 14...@debbugs.gnu.org
On Wed, 05 Jun 2013 12:42:44 -0400 Glenn Morris <r...@gnu.org> wrote:

GM> Ted Zlatanov wrote:
>> I applied something very similar. It's a tiny change so it doesn't
>> require assignment papers.

GM> Thanks for applying it. If committing changes by others, please make the
GM> ChangeLog entry in their name, and use commit --author.

This must be a recent policy, or at least wasn't requested before. Sorry.

GM> And because this has a bug number, the ChangeLog entry can use that
GM> rather than an emacs-devel link.

Right. Can you tell I haven't contributed in a while? :)

Should I edit the ChangeLog with the bug number or just leave it alone
now that it's wrong?

Ted



João Távora

unread,
Jun 6, 2013, 4:15:59 AM6/6/13
to Ted Zlatanov, 14...@debbugs.gnu.org, emacs...@gnu.org
Thanks!

To test, I will load just load the trunks "tls.el" in my existing W32
emacs. (I don't have time to get a windows emacs-building toolchain).

As Stefan mentioned, I have already signed papers.

João

On Wed, Jun 5, 2013 at 4:06 PM, Ted Zlatanov <t...@lifelogs.com> wrote:
> On Mon, 20 May 2013 23:07:30 +0100 João Távora <joaot...@gmail.com> wrote:
>
> JT> Here is a patch that should be equivalent to the defadvice I'm using.
> JT> As I said, it works for me. Also I didn't have a VC copy of emacs so I
> JT> used `diff-buffer-with-file'
>
> I applied something very similar. It's a tiny change so it doesn't
--
João Távora



Glenn Morris

unread,
Jun 7, 2013, 8:58:06 PM6/7/13
to 14...@debbugs.gnu.org
Ted Zlatanov wrote:

> GM> Thanks for applying it. If committing changes by others, please make the
> GM> ChangeLog entry in their name, and use commit --author.
>
> This must be a recent policy, or at least wasn't requested before. Sorry.

The ChangeLog thing is very old. The --commit thing is less well
advertised, but must be several years old by now I should think.

> Should I edit the ChangeLog with the bug number or just leave it alone
> now that it's wrong?

It's always fine to improve ChangeLog entries after the fact.
(I changed it.)



0 new messages