mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-13 17:40:22 -08:00
* doc/misc/erc.texi: Add SASL section in Advanced Usage chapter to document the new SASL module. * etc/ERC-NEWS: Mention addition of erc-sasl module for SASL support. * lisp/erc/erc-compat.el (erc-compat--29-sasl-scram-construct-gs2-header, erc-compat--29-sasl-scram-client-first-message, erc-compat--29-sasl-scram--client-final-message): Fix encoding bug and add minimal authorization support with copies of SASL functions introduced in Emacs 29. * lisp/erc/erc.el (erc-modules): Add `sasl'. * lisp/erc/erc-sasl.el: New file (bug#29108). * test/lisp/erc/erc-sasl-tests.el: New file. * test/lisp/erc/erc-scenarios-sasl.el: New file. * test/lisp/erc/resources/sasl/plain-failed.eld: New file. * test/lisp/erc/resources/sasl/plain.eld: New file. * test/lisp/erc/resources/sasl/scram-sha-1.eld: New file. * test/lisp/erc/resources/sasl/scram-sha-256.eld: New file. * test/lisp/erc/resources/sasl/external.eld: New file.
16 lines
640 B
Text
16 lines
640 B
Text
;; -*- mode: lisp-data; -*-
|
|
((cap-req 10 "CAP REQ :sasl"))
|
|
((nick 1 "NICK tester"))
|
|
((user 1 "USER tester 0 * :tester")
|
|
(0.0 ":irc.foonet.org NOTICE * :*** Looking up your hostname...")
|
|
(0.0 ":irc.foonet.org NOTICE * :*** Found your hostname")
|
|
(0.0 ":irc.foonet.org CAP * ACK :cap-notify sasl"))
|
|
|
|
((authenticate-plain 3.2 "AUTHENTICATE PLAIN")
|
|
(0.0 ":irc.foonet.org AUTHENTICATE +"))
|
|
|
|
((authenticate-gimme 3.2 "AUTHENTICATE AHRlc3RlcgB3cm9uZw==")
|
|
(0.0 ":irc.foonet.org 900 * * tester :You are now logged in as tester")
|
|
(0.0 ":irc.foonet.org 904 * :SASL authentication failed: Invalid account credentials"))
|
|
|
|
((cap-end 3.2 "CAP END"))
|