* Re: Using gnutls.c by default
2011-05-05 10:42 ` Ted Zlatanov
@ 2011-05-05 11:27 ` Juanma Barranquero
2011-05-05 11:50 ` Andy Moreton
` (2 subsequent siblings)
3 siblings, 0 replies; 20+ messages in thread
From: Juanma Barranquero @ 2011-05-05 11:27 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: Sean Sieger, emacs-devel
2011/5/5 Ted Zlatanov <tzz@lifelogs.com>:
> Now that W32 has dynamic GnuTLS loading, I think it can be enabled by
> default. Does anyone have objections or comments?
Yes, definitely. I meant to send a message to Sean about this issue,
but I forgot.
Juanma
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Using gnutls.c by default
2011-05-05 10:42 ` Ted Zlatanov
2011-05-05 11:27 ` Juanma Barranquero
@ 2011-05-05 11:50 ` Andy Moreton
2011-05-05 11:57 ` Juanma Barranquero
2011-05-05 12:10 ` Christoph Scholtes
2011-05-05 13:22 ` Robert Pluim
3 siblings, 1 reply; 20+ messages in thread
From: Andy Moreton @ 2011-05-05 11:50 UTC (permalink / raw)
To: emacs-devel
On Thu 05 May 2011, Ted Zlatanov wrote:
> On Tue, 3 May 2011 01:09:02 +0200 Juanma Barranquero <lekktu@gmail.com> wrote:
>
> JB> On Tue, May 3, 2011 at 00:50, Christoph Scholtes
> JB> <cschol2112@googlemail.com> wrote:
>
>>> Right now, if you enable GnuTLS support on Windows, you MUST have the GnuTLS
>>> libraries in order to even start Emacs. This is, I believe, what Juanma's
>>> improvements will fix (dynamic loading of the library if needed, much like
>>> the graphics libraries).
>
> JB> Right.
>
>>> Until this is implemented, GnuTLS should not be enabled by default and
>>> Sean's weekly builds should also not be built with GnuTLS support enabled.
>
> JB> Agreed.
>
> Now that W32 has dynamic GnuTLS loading, I think it can be enabled by
> default. Does anyone have objections or comments? As I mentioned I
> don't use that platform so I can't speak for its users.
There is little evidence of anybody using it yet, so making it the
default seems premature.
It would be better to wait a week or two until there has been some
feedback about use of GnuTLS on Win32.
AndyM
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Using gnutls.c by default
2011-05-05 11:50 ` Andy Moreton
@ 2011-05-05 11:57 ` Juanma Barranquero
2011-05-05 14:00 ` Ted Zlatanov
0 siblings, 1 reply; 20+ messages in thread
From: Juanma Barranquero @ 2011-05-05 11:57 UTC (permalink / raw)
To: Andy Moreton; +Cc: emacs-devel
On Thu, May 5, 2011 at 13:50, Andy Moreton <andrewjmoreton@gmail.com> wrote:
> It would be better to wait a week or two until there has been some
> feedback about use of GnuTLS on Win32.
We're talking about the trunk. Supporting GnuTLS by default is what
will give us feedback, at least on Windows, where (much) fewer people
is expected to build their own Emacs.
Juanma
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Using gnutls.c by default
2011-05-05 11:57 ` Juanma Barranquero
@ 2011-05-05 14:00 ` Ted Zlatanov
2011-05-05 14:16 ` Robert Pluim
0 siblings, 1 reply; 20+ messages in thread
From: Ted Zlatanov @ 2011-05-05 14:00 UTC (permalink / raw)
To: emacs-devel
On Thu, 5 May 2011 13:57:48 +0200 Juanma Barranquero <lekktu@gmail.com> wrote:
JB> On Thu, May 5, 2011 at 13:50, Andy Moreton <andrewjmoreton@gmail.com> wrote:
>> It would be better to wait a week or two until there has been some
>> feedback about use of GnuTLS on Win32.
JB> We're talking about the trunk. Supporting GnuTLS by default is what
JB> will give us feedback, at least on Windows, where (much) fewer people
JB> is expected to build their own Emacs.
So far it's 5 to 1 votes in favor; I think it's badly needed on W32
where there are serious problems with the alternatives to GnuTLS.
Note that the user still has to (require 'gnutls) to use it. We're just
adding the library support to Emacs. Without (require 'gnutls)
`open-network-stream' won't use `gnutls-negotiate'.
Ted
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Using gnutls.c by default
2011-05-05 14:00 ` Ted Zlatanov
@ 2011-05-05 14:16 ` Robert Pluim
2011-05-05 14:36 ` Ted Zlatanov
0 siblings, 1 reply; 20+ messages in thread
From: Robert Pluim @ 2011-05-05 14:16 UTC (permalink / raw)
To: emacs-devel
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Thu, 5 May 2011 13:57:48 +0200 Juanma Barranquero <lekktu@gmail.com> wrote:
>
> JB> On Thu, May 5, 2011 at 13:50, Andy Moreton <andrewjmoreton@gmail.com> wrote:
>>> It would be better to wait a week or two until there has been some
>>> feedback about use of GnuTLS on Win32.
>
> JB> We're talking about the trunk. Supporting GnuTLS by default is what
> JB> will give us feedback, at least on Windows, where (much) fewer people
> JB> is expected to build their own Emacs.
>
> So far it's 5 to 1 votes in favor; I think it's badly needed on W32
> where there are serious problems with the alternatives to GnuTLS.
>
> Note that the user still has to (require 'gnutls) to use it. We're just
> adding the library support to Emacs. Without (require 'gnutls)
> `open-network-stream' won't use `gnutls-negotiate'.
Oh, I thought Lars was proposing to go further than that, and always use
GnuTLS if available. Makes no difference to my opinion, GnuTLS works for
me :)
Robert
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Using gnutls.c by default
2011-05-05 14:16 ` Robert Pluim
@ 2011-05-05 14:36 ` Ted Zlatanov
2011-05-07 15:05 ` T.V. Raman
0 siblings, 1 reply; 20+ messages in thread
From: Ted Zlatanov @ 2011-05-05 14:36 UTC (permalink / raw)
To: emacs-devel
On Thu, 05 May 2011 16:16:44 +0200 Robert Pluim <rpluim@gmail.com> wrote:
RP> Ted Zlatanov <tzz@lifelogs.com> writes:
>> On Thu, 5 May 2011 13:57:48 +0200 Juanma Barranquero <lekktu@gmail.com> wrote:
>>
JB> On Thu, May 5, 2011 at 13:50, Andy Moreton <andrewjmoreton@gmail.com> wrote:
>>>> It would be better to wait a week or two until there has been some
>>>> feedback about use of GnuTLS on Win32.
>>
JB> We're talking about the trunk. Supporting GnuTLS by default is what
JB> will give us feedback, at least on Windows, where (much) fewer people
JB> is expected to build their own Emacs.
>>
>> So far it's 5 to 1 votes in favor; I think it's badly needed on W32
>> where there are serious problems with the alternatives to GnuTLS.
>>
>> Note that the user still has to (require 'gnutls) to use it. We're just
>> adding the library support to Emacs. Without (require 'gnutls)
>> `open-network-stream' won't use `gnutls-negotiate'.
RP> Oh, I thought Lars was proposing to go further than that, and always use
RP> GnuTLS if available. Makes no difference to my opinion, GnuTLS works for
RP> me :)
After re-reading the thread, you're right. Sorry for the confusion, I
thought it was just about adding the library support.
So this proposal is to enable GnuTLS support for all the builds,
including W32, and then to make (require 'gnutls) unnecessary because it
will be done by `open-network-stream' by default. The user has to
explicitly turn off gnutls.el support in order to get the old behavior.
Ted
^ permalink raw reply [flat|nested] 20+ messages in thread
* Using gnutls.c by default
2011-05-05 14:36 ` Ted Zlatanov
@ 2011-05-07 15:05 ` T.V. Raman
2011-05-08 0:03 ` Ted Zlatanov
2011-05-08 2:00 ` Stefan Monnier
0 siblings, 2 replies; 20+ messages in thread
From: T.V. Raman @ 2011-05-07 15:05 UTC (permalink / raw)
To: Ted Zlatanov, emacs-devel
In that case, could we support slightly older versions of gnutls?
Apparently there is no prebuilt package for gnutls 2.6 on Jaunty
-- I'm going to install it from source. But I suspect the
average user is going to get burnt.
--
Best Regards,
--raman
--
Best Regards,
--raman
On 5/5/11, Ted Zlatanov <tzz@lifelogs.com> wrote:
> On Thu, 05 May 2011 16:16:44 +0200 Robert Pluim <rpluim@gmail.com> wrote:
>
> RP> Ted Zlatanov <tzz@lifelogs.com> writes:
>>> On Thu, 5 May 2011 13:57:48 +0200 Juanma Barranquero <lekktu@gmail.com>
>>> wrote:
>>>
> JB> On Thu, May 5, 2011 at 13:50, Andy Moreton <andrewjmoreton@gmail.com>
> wrote:
>>>>> It would be better to wait a week or two until there has been some
>>>>> feedback about use of GnuTLS on Win32.
>>>
> JB> We're talking about the trunk. Supporting GnuTLS by default is what
> JB> will give us feedback, at least on Windows, where (much) fewer people
> JB> is expected to build their own Emacs.
>>>
>>> So far it's 5 to 1 votes in favor; I think it's badly needed on W32
>>> where there are serious problems with the alternatives to GnuTLS.
>>>
>>> Note that the user still has to (require 'gnutls) to use it. We're just
>>> adding the library support to Emacs. Without (require 'gnutls)
>>> `open-network-stream' won't use `gnutls-negotiate'.
>
> RP> Oh, I thought Lars was proposing to go further than that, and always use
> RP> GnuTLS if available. Makes no difference to my opinion, GnuTLS works for
> RP> me :)
>
> After re-reading the thread, you're right. Sorry for the confusion, I
> thought it was just about adding the library support.
>
> So this proposal is to enable GnuTLS support for all the builds,
> including W32, and then to make (require 'gnutls) unnecessary because it
> will be done by `open-network-stream' by default. The user has to
> explicitly turn off gnutls.el support in order to get the old behavior.
>
> Ted
>
>
>
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Using gnutls.c by default
2011-05-07 15:05 ` T.V. Raman
@ 2011-05-08 0:03 ` Ted Zlatanov
2011-05-08 2:00 ` Stefan Monnier
1 sibling, 0 replies; 20+ messages in thread
From: Ted Zlatanov @ 2011-05-08 0:03 UTC (permalink / raw)
To: emacs-devel
On Sat, 7 May 2011 08:05:23 -0700 "T.V. Raman" <tv.raman.tv@gmail.com> wrote:
TVR> In that case, could we support slightly older versions of gnutls?
TVR> Apparently there is no prebuilt package for gnutls 2.6 on Jaunty
TVR> -- I'm going to install it from source. But I suspect the
TVR> average user is going to get burnt.
I would rather not support old versions of GnuTLS. I believe we
discussed this a few months ago when we were talking about callbacks.
2.6 is already very old; remember that old versions have potential
security issues so we don't want to encourage their use.
The average user will get Emacs from a distribution, not compile it
themselves. For those who compile, either they get a recent GnuTLS
distribution or they will have to specify --without-gnutls. I think
that's reasonable.
If you disagree, you or someone else will have to support those older
versions. The API is quite different so it's not trivial.
Ted
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Using gnutls.c by default
2011-05-07 15:05 ` T.V. Raman
2011-05-08 0:03 ` Ted Zlatanov
@ 2011-05-08 2:00 ` Stefan Monnier
1 sibling, 0 replies; 20+ messages in thread
From: Stefan Monnier @ 2011-05-08 2:00 UTC (permalink / raw)
To: T.V. Raman; +Cc: Ted Zlatanov, emacs-devel
> In that case, could we support slightly older versions of gnutls?
> Apparently there is no prebuilt package for gnutls 2.6 on Jaunty
> -- I'm going to install it from source. But I suspect the
> average user is going to get burnt.
By the time Emacs-24 gets released this shouldn't be a big problem.
Stefan
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Using gnutls.c by default
2011-05-05 10:42 ` Ted Zlatanov
2011-05-05 11:27 ` Juanma Barranquero
2011-05-05 11:50 ` Andy Moreton
@ 2011-05-05 12:10 ` Christoph Scholtes
2011-05-05 12:15 ` Juanma Barranquero
2011-05-05 13:22 ` Robert Pluim
3 siblings, 1 reply; 20+ messages in thread
From: Christoph Scholtes @ 2011-05-05 12:10 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: Juanma Barranquero, Sean Sieger, emacs-devel
On 5/5/2011 4:42 AM, Ted Zlatanov wrote:
> Now that W32 has dynamic GnuTLS loading, I think it can be enabled by
> default. Does anyone have objections or comments? As I mentioned I
> don't use that platform so I can't speak for its users.
No objections. The dynamic loading works fine and Emacs starts up
without the binaries present.
Thanks for adding this Juanma.
Christoph
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Using gnutls.c by default
2011-05-05 10:42 ` Ted Zlatanov
` (2 preceding siblings ...)
2011-05-05 12:10 ` Christoph Scholtes
@ 2011-05-05 13:22 ` Robert Pluim
3 siblings, 0 replies; 20+ messages in thread
From: Robert Pluim @ 2011-05-05 13:22 UTC (permalink / raw)
To: emacs-devel
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Tue, 3 May 2011 01:09:02 +0200 Juanma Barranquero <lekktu@gmail.com> wrote:
>
> JB> On Tue, May 3, 2011 at 00:50, Christoph Scholtes
> JB> <cschol2112@googlemail.com> wrote:
>
>>> Right now, if you enable GnuTLS support on Windows, you MUST have the GnuTLS
>>> libraries in order to even start Emacs. This is, I believe, what Juanma's
>>> improvements will fix (dynamic loading of the library if needed, much like
>>> the graphics libraries).
>
> JB> Right.
>
>>> Until this is implemented, GnuTLS should not be enabled by default and
>>> Sean's weekly builds should also not be built with GnuTLS support enabled.
>
> JB> Agreed.
>
> Now that W32 has dynamic GnuTLS loading, I think it can be enabled by
> default. Does anyone have objections or comments? As I mentioned I
> don't use that platform so I can't speak for its users.
I've been using it under cygwin for a while now. I do still get hangs
occasionally, but they're definitely not GnuTLS' fault (my X server
hangs as well at the same time, and sometimes I hadn't even started
gnus, so gnutls.el would not have been loaded yet), and they're very
highly correlated with wifi + ip address changes. I'd say go for it.
Robert
^ permalink raw reply [flat|nested] 20+ messages in thread