]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl_ckch: Simplify I/O handler to commit changes on CA/CRL entry
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 07:00:09 +0000 (09:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 07:21:47 +0000 (09:21 +0200)
commitddc8e1cf8b2355eef44ea51956366b0c682343b8
tree0fc2cc8f35886b27410071e53f868b39c82ea933
parent14df913400f72d2b863ae2d684ee420b6476fbfe
MINOR: ssl_ckch: Simplify I/O handler to commit changes on CA/CRL entry

Simplify cli_io_handler_commit_cafile_crlfile() handler function by
retrieving old and new entries at the beginning. In addition the path is
also retrieved at this stage. This removes several switch statements.

Note that the ctx was already validated by the corresponding parsing
function. Thus there is no reason to test the pointers.

While it is not a bug, this patch may help to fix issue #1731.
src/ssl_ckch.c