]> git.ipfire.org Git - thirdparty/curl.git/commit
dnscache: own source file, improvements
authorStefan Eissing <stefan@eissing.org>
Fri, 6 Mar 2026 08:22:26 +0000 (09:22 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Mar 2026 11:04:36 +0000 (12:04 +0100)
commit96d5b5c688c48a8f58ded1563ed0c5c47c877e32
tree0204c513d734c5d839d3b1c514ae37b5b06bae3c
parentb0f6e9a3d7be02e8f2e323aa97f2ff9b30662b32
dnscache: own source file, improvements

- Rename `Curl_resolv_unlink()` to `Curl_dns_entry_unlink()`.
- Change `Curl_dnscache_get()` to return CURLcode result. Returns
  now `CURLE_COULDNT_RESOLVE_HOST` for "negative" cache entries.
- Add `Curl_dnscache_add_negative()` to put a "negative" entry
  into the cache.

Closes #20864
35 files changed:
docs/ECH.md
lib/Makefile.inc
lib/amigaos.c
lib/asyn-ares.c
lib/asyn-base.c
lib/asyn-thrdd.c
lib/asyn.h
lib/cf-socket.c
lib/connect.c
lib/curl_addrinfo.c
lib/curl_addrinfo.h
lib/dnscache.c [new file with mode: 0644]
lib/dnscache.h [new file with mode: 0644]
lib/doh.c
lib/doh.h
lib/easy.c
lib/ftp.c
lib/hostip.c
lib/hostip.h
lib/hostip4.c
lib/hostip6.c
lib/multi.c
lib/multihandle.h
lib/setopt.c
lib/socks.c
lib/transfer.c
lib/url.c
lib/urldata.h
lib/vtls/openssl.c
lib/vtls/rustls.c
lib/vtls/vtls.c
lib/vtls/wolfssl.c
tests/libtest/cli_hx_download.c
tests/libtest/first.h
tests/unit/unit1305.c