1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-21 05:00:47 -08:00
emacs/lisp/erc
F. Jason Park 5258f36168
Accept functions in place of passwords in ERC
* lisp/erc/erc-backend.el (erc-session-password): Add comment
explaining type is now string, nil, or function.
* lisp/erc/erc-compat.el (erc-compat--29-auth-source-pass-search):
Use obfuscation from auth-source function when available.
* lisp/erc/erc-sasl.el (erc-sasl--read-password,
erc-server-AUTHENTICATE): Use `erc--unfun'.
* lisp/erc/erc-services.el (erc-nickserv-get-password,
erc-nickserv-send-identify): Use `erc--unfun'.
* lisp/erc/erc.el (erc--unfun): New function for unwrapping a
password couched in a getter.
(erc--debug-irc-protocol-mask-secrets): Add variable to indicate
whether to mask passwords in debug logs.
(erc--mask-secrets): New function to swap masked secret with question
marks in debug logs.
(erc-log-irc-protocol): Conditionally mask secrets when
`erc--debug-irc-protocol-mask-secrets' is non-nil.
(erc--auth-source-search): Don't unwrap secret from function before
returning.
(erc-server-join-channel, erc-login): Use `erc--unfun'.

* test/lisp/erc/erc-services-tests.el
(erc-services-tests--wrap-search): Add helper for `erc--unfun'.
(erc-services-tests--auth-source-standard,
erc-services-tests--auth-source-announced,
erc-services-tests--auth-source-overrides, erc-nickserv-get-password):
Use `erc--unfun'.
* test/lisp/erc/erc-tests.el (erc--debug-irc-protocol-mask-secrets):
Add test for masking secrets with `erc--unfun' and friends.
2022-11-23 21:23:05 -05:00
..
ChangeLog.1 ; Fix typos 2022-11-20 12:59:39 +01:00
ChangeLog.2
erc-autoaway.el
erc-backend.el Accept functions in place of passwords in ERC 2022-11-23 21:23:05 -05:00
erc-button.el Remove redundant let-bindings of inhibit-point-motion-hooks 2022-10-07 12:16:47 -04:00
erc-capab.el ; Fix several symbol name typos 2022-10-26 23:04:23 +02:00
erc-common.el Support local ERC modules in erc-mode buffers 2022-11-23 19:56:31 -05:00
erc-compat.el Accept functions in place of passwords in ERC 2022-11-23 21:23:05 -05:00
erc-dcc.el Offer completions for GET subcommand flags in erc-dcc 2022-11-04 19:32:23 -07:00
erc-desktop-notifications.el
erc-ezbounce.el
erc-fill.el
erc-goodies.el Support local ERC modules in erc-mode buffers 2022-11-23 19:56:31 -05:00
erc-ibuffer.el
erc-identd.el
erc-imenu.el
erc-join.el
erc-lang.el
erc-list.el
erc-log.el Revert "Decrease use of the word "Emacsen" in docs" 2022-10-01 22:34:47 +02:00
erc-match.el Offer to regexp-quote new items in erc-match commands 2022-09-19 17:54:46 -07:00
erc-menu.el
erc-netsplit.el
erc-networks.el Don't set erc-networks--id until network is known 2022-11-23 19:54:40 -05:00
erc-notify.el
erc-page.el
erc-pcomplete.el Improve auto-reconnect visibility in ERC 2022-11-16 21:34:36 -08:00
erc-replace.el
erc-ring.el
erc-sasl.el Accept functions in place of passwords in ERC 2022-11-23 21:23:05 -05:00
erc-services.el Accept functions in place of passwords in ERC 2022-11-23 21:23:05 -05:00
erc-sound.el
erc-speedbar.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
erc-spelling.el
erc-stamp.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
erc-status-sidebar.el
erc-track.el
erc-truncate.el
erc-xdcc.el
erc.el Accept functions in place of passwords in ERC 2022-11-23 21:23:05 -05:00