1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 19:42:53 -08:00
emacs/test/lisp/net
F. Jason Park b4b4b5f431 Improve SOCKS error handling and support version 4a
* doc/misc/url.texi: Mention version 4a in SOCKS portion of "Gateways
in general" node.
* etc/NEWS: Mention version 4a support in new `socks' section.
* lisp/net/socks.el (socks-server): Add new Custom choice `4a' for
version field.  This change does not further overload the field in
terms of expected type because `socks-send-command' and `socks-filter'
already accommodate the symbol `http'.
(socks--errors-4): Add new constant containing error messages for
version 4.  The semantics are faithful to the de facto spec, but the
exact wording is slightly adapted.
(socks-filter): Allow for a null "type" field on error with version 5.
Previously, certain errors would not propagate because a wrong-type
signal would get in the way.
(socks-send-command): Massage existing version 4 protocol parsing to
accommodate 4a, and add error handling for version 4.  Use variable
`socks-username' for v4 variable-length ID field instead of calling
`user-full-name', which has potential privacy implications.
* test/lisp/net/socks-tests.el (socks-tests-v4-basic): Don't mock
`user-full-name' because `socks-send-command' no longer calls it to
determine the ID.
(socks-tests-v4a-basic, socks-tests-v4a-error): Add a couple tests for
SOCKS version 4a.  (Bug#53941)
2023-10-18 06:23:57 -07:00
..
dbus-resources
eudc-resources EUDC: Improve LDAP and BBDB tests 2022-11-24 02:21:38 -05:00
mailcap-resources
network-stream-resources
ntlm-resources
puny-resources ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
shr-resources
tramp-archive-resources
tramp-resources
browse-url-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dbus-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dig-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eudc-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gnutls-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
hmac-md5-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mailcap-tests.el Make ‘mailcap-viewer-passes-test’ return t for viewers without tests 2023-09-10 08:16:22 +02:00
network-stream-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
newsticker-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
nsm-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ntlm-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
puny-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rcirc-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rfc2104-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl-cram-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl-scram-rfc-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
secrets-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
shr-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
socks-tests.el Improve SOCKS error handling and support version 4a 2023-10-18 06:23:57 -07:00
tramp-archive-tests.el Adapt Tramp test 2023-08-19 10:08:35 +02:00
tramp-tests.el Merge from origin/emacs-29 2023-10-13 16:18:06 +02:00
webjump-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00