]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: move parsing of "ca-base" and "crt-base" to ssl_sock
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2016 21:44:46 +0000 (22:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2016 22:39:26 +0000 (23:39 +0100)
commit8c3b0fd273bc26a8ef71b53052f7a295431adf0b
treebb81f79d35494e3fb37ba922d0f3e473cabc241f
parentece9b07c7190b58dbaf1bc36c695a2ca8e4ec0cc
MINOR: cfgparse: move parsing of "ca-base" and "crt-base" to ssl_sock

This removes 2 #ifdefs and makes the code much cleaner. The controls
are still there and the two parsers have been merged into a single
function ssl_parse_global_ca_crt_base().

It's worth noting that there's still a check to prevent a change when
the value was already specified. This test seems useless and possibly
counter-productive, it may have to be revisited later, but for now it
was implemented identically.
src/cfgparse.c
src/ssl_sock.c