CLEANUP: ssl/cli: use a local context for "commit ssl {ca|crl}file"
authorWilly Tarreau <w@1wt.eu>
Wed, 4 May 2022 18:25:05 +0000 (20:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:36 +0000 (18:13 +0200)
commitdec23dc43ff0e4f11520f9d664655a9cb7569374
tree6a9d8007a3f2aaaaf62d12e4b6d9bd760f758957
parenta06b9a5ccfe6a91d48a12151dd098f3d91a94bb3
CLEANUP: ssl/cli: use a local context for "commit ssl {ca|crl}file"

These two commands use distinct parse/release functions but a common
iohandler, thus they need to keep the same context. It was created
under the name "commit_cacrlfile_ctx" and holds a large part of the
pointers (6) and the ca_type field that helps distinguish between
the two commands for the I/O handler. It looks like some of these
fields could have been merged since apparently the CA part only
uses *cafile* and the CRL part *crlfile*, while both old and new
are of type cafile_entry and set only for each type. This could
probably even simplify some parts of the code that tries to use
the correct field.

These fields were the last ones to be migrated thus the appctx's
ssl context could finally be removed.
include/haproxy/applet-t.h
src/ssl_ckch.c