1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 13:40:36 -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: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
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: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-ezbounce.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-fill.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-goodies.el Support local ERC modules in erc-mode buffers 2022-11-23 19:56:31 -05:00
erc-ibuffer.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-identd.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-imenu.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-join.el Standardize auth-source queries in ERC 2022-06-30 15:18:22 -07:00
erc-lang.el Rename Oriya to Odia, and more 2022-05-19 15:23:46 +03:00
erc-list.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
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: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-netsplit.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
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: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-page.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-pcomplete.el Improve auto-reconnect visibility in ERC 2022-11-16 21:34:36 -08:00
erc-replace.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-ring.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
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: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-speedbar.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
erc-spelling.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
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: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-track.el * lisp/erc/erc-track.el (erc-track-minor-mode-map): Doc fix. 2022-07-06 01:54:55 -07:00
erc-truncate.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc-xdcc.el ERC: Add new comaintainer, F. Jason Park 2022-01-24 10:59:05 -05:00
erc.el Accept functions in place of passwords in ERC 2022-11-23 21:23:05 -05:00