// Copyright (c) 2015, Google Inc. // SPDX-License-Identifier: ISC #ifndef OPENSSL_HEADER_CRYPTO_CONF_INTERNAL_H #define OPENSSL_HEADER_CRYPTO_CONF_INTERNAL_H #include #include "../lhash/internal.h" #if defined(__cplusplus) extern "C" { #endif DEFINE_LHASH_OF(CONF_VALUE) // CONF_VALUE_new returns a freshly allocated and zeroed |CONF_VALUE|. CONF_VALUE *CONF_VALUE_new(void); // CONF_parse_list takes a list separated by 'sep' and calls |list_cb| giving // the start and length of each member, optionally stripping leading and // trailing whitespace. This can be used to parse comma separated lists for // example. If |list_cb| returns <= 0, then the iteration is halted and that // value is returned immediately. Otherwise it returns one. Note that |list_cb| // may be called on an empty member. OPENSSL_EXPORT int CONF_parse_list( const char *list, char sep, int remove_whitespace, int (*list_cb)(const char *elem, size_t len, void *usr), void *arg); #if defined(__cplusplus) } // extern C #endif #endif // OPENSSL_HEADER_CRYPTO_CONF_INTERNAL_H