MINOR: ssl/ckch: add substring parser for ckch_conf

Add a substring parser for the ckch_conf keyword parser, this will split
a string into multiple substring, and strdup them in a array.
This commit is contained in:
William Lallemand
2025-03-20 22:44:53 +01:00
parent fa01c9d92b
commit fdcb97614c
2 changed files with 50 additions and 2 deletions

View File

@@ -183,8 +183,9 @@ struct cert_exts {
enum parse_type_t {
PARSE_TYPE_NONE = 0,
PARSE_TYPE_INT,
PARSE_TYPE_STR, /* string which is strdup() */
PARSE_TYPE_ONOFF, /* "on" or "off" keyword */
PARSE_TYPE_STR, /* string which is strdup() */
PARSE_TYPE_ARRAY_SUBSTR, /* string splitted by colons into an array of substring */
PARSE_TYPE_ONOFF, /* "on" or "off" keyword */
};
struct ckch_conf_kws {