]> git.ipfire.org Git - thirdparty/curl.git/commit
windows: reduce/stop loading DLLs at runtime
authorViktor Szakats <commit@vsz.me>
Wed, 21 May 2025 17:37:55 +0000 (19:37 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 11 Jun 2025 03:39:09 +0000 (05:39 +0200)
commit0d71b18153c8edb996738f8a362373fc72d0013b
tree6c65c0bbfed71b506ed572832087015c47c2a74a
parentc129d0b1a8769b352a3cf906fa0d3919b4a8ea3d
windows: reduce/stop loading DLLs at runtime

- replace dynamic `InitSecurityInterface()` call with early binding and
  link `secur32` system DLL.
  The library and function are available in all supported curl Windows
  targets, meaning WinXP or newer.  Add small hack for mingw32ce to
  make it build.

- detect and use `if_nametoindex()` on Windows when available. Link
  `iphlpapi` system DLL. Requires targeting Vista or newer.
  Replacing the dynamic call and the pre-load optimization for lib3026.

Suggested-by: Jay Satiro
Closes #17413
16 files changed:
CMake/win32-cache.cmake
CMakeLists.txt
configure.ac
lib/curl_sspi.c
lib/curl_sspi.h
lib/http_ntlm.c
lib/system_win32.c
lib/system_win32.h
lib/url.c
projects/Windows/VC10/lib/libcurl.tmpl
projects/Windows/VC10/src/curl.tmpl
projects/Windows/VC11/lib/libcurl.tmpl
projects/Windows/VC11/src/curl.tmpl
projects/Windows/VC12/lib/libcurl.tmpl
projects/Windows/VC12/src/curl.tmpl
winbuild/MakefileBuild.vc