]> git.ipfire.org Git - thirdparty/curl.git/commit
setopt: split up setopt_long and setopt_cptr
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Jan 2026 23:19:27 +0000 (00:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 13 Jan 2026 08:55:09 +0000 (09:55 +0100)
commit8582ecf5bb3b507fe0a9714cf3ea14733ccde02a
tree2dd1b9853c6fdfaed9cfdd330f93265f0906bf5e
parentf057ed05beb2f03eb77dab446d8ff9c3f62cac42
setopt: split up setopt_long and setopt_cptr

- Split setopt_long() into multiple functions
  (setopt_long_bool/net/http/proxy/ssl/proto/misc) and dispatch them
  using a small function table

- Extract proxy string option handling into setopt_cptr_proxy() and call
  it early from setopt_cptr()

- Reorder options to simplify #ifdef blocks and reduce per-function size

- Updates code paths to return CURLE_UNKNOWN_OPTION from helper defaults
  so dispatching can continue cleanly

Closes #20280
lib/setopt.c