all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Josefsson <simon@josefsson.org>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: gnus/starttls.el and net/tls.el
Date: Thu, 15 Nov 2007 15:20:35 +0100	[thread overview]
Message-ID: <87mytfsi8c.fsf@mocca.josefsson.org> (raw)
In-Reply-To: <E1IqbtY-0003GD-Nt@fencepost.gnu.org> (Richard Stallman's message of "Fri, 09 Nov 2007 17:00:08 -0500")

Richard Stallman <rms@gnu.org> writes:

>     tls.el starts talking TLS to the server directly.  starttls.el, however,
>     does not begin talking TLS until the application calls
>     starttls-negotiate.  In other words, starttls.el allows an unencrypted
>     phase before the encrypted phase starts.
>
> Would it be hard to extend tls.el to provide a way to do this?

It would require some work, but it is possible.  (Alas, I don't think I
have time to do it.)

Semantically, the tls-package could be implemented via starttls.el by
calling the 'open' and then the 'negotiate' function.  However, tls.el
and starttls.el differ by supporting different external tools, so some
users may get upset if, e.g., the 'starttls' or 'OpenSSL' way stops
working.

I'm not sure I understand the reason though.  Is it to avoid having two
files?  If so, how about moving the code in starttls.el into tls.el?
That would make it easier to slowly re-factor the code to avoid code
duplication.  On the other hand, starttls.el is used by a couple of
packages already, which may break.

>     tls.el can use openssl and gnutls.  starttls.el can use gnutls and a
>     tool called 'starttls'.
>
> What is the point of `starttls'?  For what purpose is it useful
> to use that, rather than GNUtls?

Today, I don't think there is any reason, but I may be biased towards
favoring GnuTLS.  gnutls-cli didn't used to support starttls operations,
but it does today.  As far as I remember, 'starttls' doesn't verify
server certificates, so starttls may be considered insecure.

/Simon

  reply	other threads:[~2007-11-15 14:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1Ipflm-0004Yx-6I@fencepost.gnu.org>
2007-11-08 13:35 ` gnus/starttls.el and net/tls.el Simon Josefsson
2007-11-09 22:00   ` Richard Stallman
2007-11-15 14:20     ` Simon Josefsson [this message]
2007-11-16  4:29       ` Richard Stallman
2007-11-26 15:28         ` Simon Josefsson
2007-11-26 22:39           ` Richard Stallman
2007-11-28 13:44           ` Sascha Wilde
2007-11-29 11:34             ` Simon Josefsson
2007-11-29 12:08               ` Sascha Wilde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mytfsi8c.fsf@mocca.josefsson.org \
    --to=simon@josefsson.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.