From: Ted Zlatanov <tzz@lifelogs.com>
To: erc-discuss@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: STARTTLS for erc
Date: Thu, 23 Jun 2011 07:24:16 -0500 [thread overview]
Message-ID: <87r56krb0v.fsf@lifelogs.com> (raw)
In-Reply-To: m3oc1ps6xv.fsf@quimbies.gnus.org
On Thu, 23 Jun 2011 02:54:52 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
LMI> So you have to know in advance that the server supports STARTTLS or not,
LMI> which is kinda, er, stupid.
LMI> However. After logging in, the servers seem to output a capability list
LMI> of sort during the login greeting. But at that point it's too late to
LMI> get STARTTLS support going. *sigh*
LMI> So erc could close the connection, and then restart it, now with
LMI> STARTTLS. But ircd logins are notoriously slow, so that's totally
LMI> icky.
I'd make "no" the default because that STARTTLS support is rare.
LMI> So perhaps something like the following would work? If erc sees that
LMI> the server supports STARTTLS, then it will store this data for future
LMI> reference. The next login will look up this data, and if the server
LMI> supports STARTTLS, it'll do STARTTLS.
LMI> But where would this per-server data be stored?
It could be in auth-source, together with the user name and password
which I am supposed to add eventually (I posted a patch on the
emacs-bugs list a month or two ago and haven't had the time to apply it
and test it). If you want, go ahead and use that patch. I would make
the STARTTLS preference a "tls" key with a "yes/no/opportunistic" value,
with "no" or missing meaning no STARTTLS should be done.
Otherwise you could store the STARTTLS preference in the server
definition of ERC itself.
LMI> And this would be somewhat brittle. If a server goes from one type
LMI> (supporting STARTTLS) to another (not supporting STARTTLS), it might
LMI> mean that the next login might fail.
I think that's really rare, unless you're hitting a DNS round-robin.
Ted
next prev parent reply other threads:[~2011-06-23 12:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 23:55 STARTTLS for erc Lars Magne Ingebrigtsen
2011-06-23 0:54 ` Lars Magne Ingebrigtsen
2011-06-23 12:24 ` Ted Zlatanov [this message]
2011-06-23 13:44 ` Antoine Levitt
2011-06-24 14:20 ` Lars Magne Ingebrigtsen
2011-06-23 13:49 ` Julien Danjou
2011-06-25 13:10 ` Stefan Monnier
2011-06-25 17:04 ` Lars Magne Ingebrigtsen
2011-06-27 1:07 ` Stefan Monnier
2011-06-27 10:25 ` Lars Magne Ingebrigtsen
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=87r56krb0v.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=emacs-devel@gnu.org \
--cc=erc-discuss@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.