]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ssl/cli: use a local context for "set ssl crlfile"
authorWilly Tarreau <w@1wt.eu>
Wed, 4 May 2022 18:33:03 +0000 (20:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:36 +0000 (18:13 +0200)
commita06b9a5ccfe6a91d48a12151dd098f3d91a94bb3
tree5567aac62b4aa7864c874a3532b525fb5cb1e695
parenta37693f7d837ffb476dc6f3785505b6397d12624
CLEANUP: ssl/cli: use a local context for "set ssl crlfile"

Just like for "set ssl cafile", 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_crlfile_entry, new_crlfile_entry, and path.
These ones were reinstantiated into a new "set_crlfile_ctx" struct.
It could have been merged with the one used in "set cafile" if the
fields had been renamed since cafile and crlfile are of the same
type (probably one of them ought to be renamed?).

None of these fields could be dropped as they are still shared with
other commands.
src/ssl_ckch.c