CONF_parse_list

Split list on separator sep and invoke list_cb for each element.

Synopsis

Declared in <openssl/conf.h>

int
CONF_parse_list(
    char const* list,
    int sep,
    int nospc,
    int(* list_cb)(char const*, int, void*),
    void* arg);

Return Value

1 on success, or 0 if a callback aborts / on parse failure.

Parameters

NameDescription
listNUL-terminated list string.
sepSeparator character.
nospcNon-zero to reject surrounding spaces around elements.
list_cbCallback receiving each element pointer, length, and arg; return 0 to abort.
argUser pointer passed to list_cb.