codekingpro/portable-devtools
115k
1/*2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.3 *4 * Licensed under the Apache License 2.0 (the "License"). You may not use5 * this file except in compliance with the License. You can obtain a copy6 * in the file LICENSE in the source distribution or at7 * https://www.openssl.org/source/license.html8 */9 10#ifndef OPENSSL_CONF_API_H11# define OPENSSL_CONF_API_H12# pragma once13 14# include <openssl/macros.h>15# ifndef OPENSSL_NO_DEPRECATED_3_016# define HEADER_CONF_API_H17# endif18 19# include <openssl/lhash.h>20# include <openssl/conf.h>21 22#ifdef __cplusplus23extern "C" {24#endif25 26/* Up until OpenSSL 0.9.5a, this was new_section */27CONF_VALUE *_CONF_new_section(CONF *conf, const char *section);28/* Up until OpenSSL 0.9.5a, this was get_section */29CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section);30/* Up until OpenSSL 0.9.5a, this was CONF_get_section */31STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf,32 const char *section);33 34int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value);35char *_CONF_get_string(const CONF *conf, const char *section,36 const char *name);37long _CONF_get_number(const CONF *conf, const char *section,38 const char *name);39 40int _CONF_new_data(CONF *conf);41void _CONF_free_data(CONF *conf);42 43#ifdef __cplusplus44}45#endif46#endif47 