From: Simon Josefsson <simon@josefsson.org>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: url-retrieve-synchronously randomly fails on https URLs (patch included)
Date: Mon, 05 Nov 2007 11:26:46 +0100 [thread overview]
Message-ID: <87tzo12djt.fsf@mocca.josefsson.org> (raw)
In-Reply-To: <E1Iny2k-0003JW-5D@fencepost.gnu.org> (Richard Stallman's message of "Fri, 02 Nov 2007 11:02:42 -0400")
Richard Stallman <rms@gnu.org> writes:
> Simon, would you please add comments near the code in GNUtls that
> outputs these messages, telling people to watch out for the need for
> Emacs to detect the last part of the messages?
Done, the GnuTLS code now contains:
/* Warning! Do not touch this text string, it is used by external
programs to search for when gnutls-cli has reached this point. */
printf ("\n- Simple Client Mode:\n\n");
etc
> + ;; `gnutls` regexp
> + (sequence
> + ;; see src/cli.c lines 721--
> + (sequence line-start "- Simple Client Mode:\n")
> + (zero-or-more
> + (or
> + "\n" ; ignore blank lines
> + ;; XXX: we have no way of knowing if the STARTTLS handshake
> + ;; sequence has completed successfully, because `gnutls` will
> + ;; only report failure.
> + (sequence line-start "\*\*\* Starting TLS handshake\n"))))))
I also installed the following patch, because I think the above comment
was incorrect.
/Simon
Index: lisp/ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.12157
diff -u -p -r1.12157 ChangeLog
--- lisp/ChangeLog 5 Nov 2007 09:06:25 -0000 1.12157
+++ lisp/ChangeLog 5 Nov 2007 10:25:21 -0000
@@ -1,3 +1,7 @@
+2007-11-05 Simon Josefsson <simon@josefsson.org>
+
+ * net/tls.el (tls-end-of-info): Doc fix.
+
2007-11-05 Kenichi Handa <handa@ni.aist.go.jp>
* international/utf-7.el (utf-7-imap): New coding system.
Index: lisp/net/tls.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/net/tls.el,v
retrieving revision 1.21
diff -u -p -r1.21 tls.el
--- lisp/net/tls.el 4 Nov 2007 01:25:49 -0000 1.21
+++ lisp/net/tls.el 5 Nov 2007 10:25:21 -0000
@@ -65,9 +65,9 @@
;; `gnutls' regexp. See src/cli.c lines 721-.
"^- Simple Client Mode:\n"
"\\(\n\\|" ; ignore blank lines
- ;; XXX: We have no way of knowing if the STARTTLS handshake sequence
- ;; has completed successfully, because `gnutls' will only report
- ;; failure.
+ ;; According to src/cli.c lines 640-650 and 705-715 the handshake
+ ;; will start after this message. If the handshake fails, the
+ ;; programs will abort.
"^\\*\\*\\* Starting TLS handshake\n\\)*"
"\\)")
"Regexp matching end of TLS client informational messages.
next prev parent reply other threads:[~2007-11-05 10:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-27 10:47 url-retrieve-synchronously randomly fails on https URLs (patch included) Riccardo Murri
2007-10-27 23:41 ` Richard Stallman
2007-10-28 12:40 ` Riccardo Murri
2007-10-29 9:22 ` Richard Stallman
2007-10-29 20:48 ` Riccardo Murri
2007-10-30 5:24 ` Richard Stallman
2007-10-30 10:23 ` Riccardo Murri
2007-11-02 15:02 ` Richard Stallman
2007-11-02 22:18 ` Reiner Steib
2007-11-02 22:37 ` Miles Bader
2007-11-02 22:50 ` Lennart Borgman (gmail)
2007-11-03 5:48 ` tomas
2007-11-03 9:35 ` Andreas Schwab
2007-11-04 1:26 ` Glenn Morris
2007-11-05 10:26 ` Simon Josefsson [this message]
2007-11-05 15:01 ` Stefan Monnier
2007-11-05 15:04 ` Simon Josefsson
[not found] ` <E1IpDzF-0003i4-EJ@fencepost.gnu.org>
2007-11-08 13:20 ` Simon Josefsson
2007-11-06 11:22 ` Riccardo Murri
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=87tzo12djt.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.