]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: handle PARSE_TYPE_INT and PARSE_TYPE_ONOFF in ckch_store_load_files()
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 30 Apr 2024 17:20:21 +0000 (19:20 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 17 May 2024 15:35:51 +0000 (17:35 +0200)
commit462e5b0098d2d9b48332f6613af78d13e8c1714a
tree0c3bc0689c37ddcdce72519b2251dde8bf75d6b1
parentc5a665f5d828b8fc80cda2cde614acc70503faaf
MINOR: ssl: handle PARSE_TYPE_INT and PARSE_TYPE_ONOFF in ckch_store_load_files()

The callback used by ckch_store_load_files() only works with
PARSE_TYPE_STR.

This allows to use a callback which will use a integer type for PARSE_TYPE_INT
and PARSE_TYPE_ONOFF.

This require to change the type of the callback to void * to pass either
a char * or a int depending of the parsing type.

The ssl_sock_load_* functions were encapsuled in ckch_conf_load_*
function just to match the type.

This will allow to handle crt-store keywords that are ONOFF or INT
types.
include/haproxy/ssl_ckch-t.h
include/haproxy/ssl_ckch.h
src/ssl_ckch.c