CLEANUP: ssl/cli: use a local context for "set ssl cafile"
authorWilly Tarreau <w@1wt.eu>
Wed, 4 May 2022 18:12:55 +0000 (20:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:36 +0000 (18:13 +0200)
commita37693f7d837ffb476dc6f3785505b6397d12624
treec151aa2f303c29b7f9dcfc43d9396f831af5a1ab
parent329f4b4f2f6cf66a87a71f4412b16a09074ed0a8
CLEANUP: ssl/cli: use a local context for "set ssl cafile"

Just like for "set ssl cert", the command doesn't really need this
context which doesn't outlive the parsing function but it was there
for a purpose so it's maintained. Only 3 fields were used from the
appctx's ssl context: old_cafile_entry, new_cafile_entry, and path.
These ones were reinstantiated into a new "set_cafile_ctx" struct.
None of them could be dropped as they are still shared with other
commands.
src/ssl_ckch.c