]> git.ipfire.org Git - thirdparty/curl.git/commit
tests: delete `libhostname.so` and `chkhostname`
authorViktor Szakats <commit@vsz.me>
Mon, 26 Aug 2024 12:26:29 +0000 (14:26 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 27 Aug 2024 21:40:48 +0000 (23:40 +0200)
commit09437d8cd46ebc5fefbb578bc11d0ffc522de2f0
tree2f796e7882976645c6437c7282a39ba7ed2eea5b
parent59b419f1a55c56c04b26f10f63004992965d04c1
tests: delete `libhostname.so` and `chkhostname`

Before this patch, `libhostname.so` and `chkhostname` were a test
facility for overriding `gethostname()` in non-debug builds on
Linux and other Unix platforms supporting `LD_PRELOAD`.

`gethostname()` has a single use with SMTP.

The alternative way to override `gethostname()` is building in debug
mode, which allows to do this via the `CURL_GETHOSTNAME` env, on all
platforms.

Drop the `LD_PRELOAD` solution in favour of the above.

Also:
- delete inactive NTLM code with a `gethostname()` call made from it.
- streamline NTLM code by dropping a `printf()` and a macro.
- tests: stop setting `CURL_GETHOSTNAME` where unnecessary.

Closes #14695
23 files changed:
configure.ac
lib/curl_gethostname.c
lib/vauth/ntlm.c
packages/OS400/make-tests.sh
tests/data/test1100
tests/data/test1310
tests/data/test159
tests/data/test2023
tests/data/test2024
tests/data/test2026
tests/data/test2027
tests/data/test831
tests/data/test834
tests/data/test877
tests/data/test880
tests/data/test933
tests/data/test936
tests/libtest/.gitignore
tests/libtest/CMakeLists.txt
tests/libtest/Makefile.am
tests/libtest/Makefile.inc
tests/libtest/chkhostname.c [deleted file]
tests/libtest/sethostname.c [deleted file]