diff options
| author | Glenn Morris | 2008-03-19 07:08:48 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-19 07:08:48 +0000 |
| commit | d44387517b6772fed61ecf280722fd636ac9af0b (patch) | |
| tree | ddf70bd10365e5ea2563b68f4fcc0bbeeb23b770 /lisp | |
| parent | d0f10d8f9f19c9db73d905ad8426c289b7d8c280 (diff) | |
| download | emacs-d44387517b6772fed61ecf280722fd636ac9af0b.tar.gz emacs-d44387517b6772fed61ecf280722fd636ac9af0b.zip | |
Sync 2007-11-04 change from trunk, plus the related comments that came after.
Don't require rx when compiling.
(tls-end-of-info): Rewrite without using rx.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tls.el | 40 |
2 files changed, 19 insertions, 26 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f4daab758e4..624b527c7b9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-19 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * net/tls.el: Don't require rx when compiling. | ||
| 4 | (tls-end-of-info): Rewrite without using rx. | ||
| 5 | |||
| 1 | 2008-03-18 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2008-03-18 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 7 | ||
| 3 | * font-lock.el (font-lock-comment-face): Set the foreground for | 8 | * font-lock.el (font-lock-comment-face): Set the foreground for |
diff --git a/lisp/net/tls.el b/lisp/net/tls.el index 8946b06a3a3..ee8477c3a39 100644 --- a/lisp/net/tls.el +++ b/lisp/net/tls.el | |||
| @@ -51,37 +51,25 @@ | |||
| 51 | (autoload 'format-spec "format-spec") | 51 | (autoload 'format-spec "format-spec") |
| 52 | (autoload 'format-spec-make "format-spec")) | 52 | (autoload 'format-spec-make "format-spec")) |
| 53 | 53 | ||
| 54 | (eval-when-compile | ||
| 55 | (require 'rx)) | ||
| 56 | |||
| 57 | (defgroup tls nil | 54 | (defgroup tls nil |
| 58 | "Transport Layer Security (TLS) parameters." | 55 | "Transport Layer Security (TLS) parameters." |
| 59 | :group 'comm) | 56 | :group 'comm) |
| 60 | 57 | ||
| 61 | (defcustom tls-end-of-info | 58 | (defcustom tls-end-of-info |
| 62 | (rx | 59 | (concat |
| 63 | (or | 60 | "\\(" |
| 64 | ;; `openssl s_client` regexp | 61 | ;; `openssl s_client' regexp. See ssl/ssl_txt.c lines 219-220. |
| 65 | (sequence | 62 | ;; According to apps/s_client.c line 1515 `---' is always the last |
| 66 | ;; see ssl/ssl_txt.c lines 219--220 | 63 | ;; line that is printed by s_client before the real data. |
| 67 | line-start | 64 | "^ Verify return code: .+\n---\n\\|" |
| 68 | " Verify return code: " | 65 | ;; `gnutls' regexp. See src/cli.c lines 721-. |
| 69 | (one-or-more not-newline) | 66 | "^- Simple Client Mode:\n" |
| 70 | "\n" | 67 | "\\(\n\\|" ; ignore blank lines |
| 71 | ;; according to apps/s_client.c line 1515 this is always the last | 68 | ;; According to GnuTLS v2.1.5 src/cli.c lines 640-650 and 705-715 |
| 72 | ;; line that is printed by s_client before the real data | 69 | ;; in `main' the handshake will start after this message. If the |
| 73 | "---\n") | 70 | ;; handshake fails, the programs will abort. |
| 74 | ;; `gnutls` regexp | 71 | "^\\*\\*\\* Starting TLS handshake\n\\)*" |
| 75 | (sequence | 72 | "\\)") |
| 76 | ;; see src/cli.c lines 721-- | ||
| 77 | (sequence line-start "- Simple Client Mode:\n") | ||
| 78 | (zero-or-more | ||
| 79 | (or | ||
| 80 | "\n" ; ignore blank lines | ||
| 81 | ;; XXX: we have no way of knowing if the STARTTLS handshake | ||
| 82 | ;; sequence has completed successfully, because `gnutls` will | ||
| 83 | ;; only report failure. | ||
| 84 | (sequence line-start "\*\*\* Starting TLS handshake\n")))))) | ||
| 85 | "Regexp matching end of TLS client informational messages. | 73 | "Regexp matching end of TLS client informational messages. |
| 86 | Client data stream begins after the last character matched by | 74 | Client data stream begins after the last character matched by |
| 87 | this. The default matches `openssl s_client' (version 0.9.8c) | 75 | this. The default matches `openssl s_client' (version 0.9.8c) |