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

Name

Description

list

NUL‐terminated list string.

sep

Separator character.

nospc

Non‐zero to reject surrounding spaces around elements.

list_cb

Callback receiving each element pointer, length, and arg; return 0 to abort.

arg

User pointer passed to list_cb.

Created with MrDocs