xref: /netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/conf_api.h (revision 4724848cf0da353df257f730694b7882798e5daf)
1*4724848cSchristos /*
2*4724848cSchristos  * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3*4724848cSchristos  *
4*4724848cSchristos  * Licensed under the OpenSSL license (the "License").  You may not use
5*4724848cSchristos  * this file except in compliance with the License.  You can obtain a copy
6*4724848cSchristos  * in the file LICENSE in the source distribution or at
7*4724848cSchristos  * https://www.openssl.org/source/license.html
8*4724848cSchristos  */
9*4724848cSchristos 
10*4724848cSchristos #ifndef  HEADER_CONF_API_H
11*4724848cSchristos # define HEADER_CONF_API_H
12*4724848cSchristos 
13*4724848cSchristos # include <openssl/lhash.h>
14*4724848cSchristos # include <openssl/conf.h>
15*4724848cSchristos 
16*4724848cSchristos #ifdef  __cplusplus
17*4724848cSchristos extern "C" {
18*4724848cSchristos #endif
19*4724848cSchristos 
20*4724848cSchristos /* Up until OpenSSL 0.9.5a, this was new_section */
21*4724848cSchristos CONF_VALUE *_CONF_new_section(CONF *conf, const char *section);
22*4724848cSchristos /* Up until OpenSSL 0.9.5a, this was get_section */
23*4724848cSchristos CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section);
24*4724848cSchristos /* Up until OpenSSL 0.9.5a, this was CONF_get_section */
25*4724848cSchristos STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf,
26*4724848cSchristos                                                const char *section);
27*4724848cSchristos 
28*4724848cSchristos int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value);
29*4724848cSchristos char *_CONF_get_string(const CONF *conf, const char *section,
30*4724848cSchristos                        const char *name);
31*4724848cSchristos long _CONF_get_number(const CONF *conf, const char *section,
32*4724848cSchristos                       const char *name);
33*4724848cSchristos 
34*4724848cSchristos int _CONF_new_data(CONF *conf);
35*4724848cSchristos void _CONF_free_data(CONF *conf);
36*4724848cSchristos 
37*4724848cSchristos #ifdef  __cplusplus
38*4724848cSchristos }
39*4724848cSchristos #endif
40*4724848cSchristos #endif
41