conf_api.h revision 109999
1114402Sru/* conf_api.h */
2151497Sru/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3114402Sru * All rights reserved.
4114402Sru *
5114402Sru * This package is an SSL implementation written
6114402Sru * by Eric Young (eay@cryptsoft.com).
7114402Sru * The implementation was written so as to conform with Netscapes SSL.
8114402Sru *
9114402Sru * This library is free for commercial and non-commercial use as long as
10114402Sru * the following conditions are aheared to.  The following conditions
11114402Sru * apply to all code found in this distribution, be it the RC4, RSA,
12114402Sru * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
13114402Sru * included with this distribution is covered by the same copyright terms
14114402Sru * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15114402Sru *
16114402Sru * Copyright remains Eric Young's, and as such any Copyright notices in
17114402Sru * the code are not to be removed.
18114402Sru * If this package is used in a product, Eric Young should be given attribution
19114402Sru * as the author of the parts of the library used.
20151497Sru * This can be in the form of a textual message at program startup or
21114402Sru * in documentation (online or textual) provided with the package.
22114402Sru *
23114402Sru * Redistribution and use in source and binary forms, with or without
24114402Sru * modification, are permitted provided that the following conditions
25114402Sru * are met:
26114402Sru * 1. Redistributions of source code must retain the copyright
27114402Sru *    notice, this list of conditions and the following disclaimer.
28114402Sru * 2. Redistributions in binary form must reproduce the above copyright
29114402Sru *    notice, this list of conditions and the following disclaimer in the
30114402Sru *    documentation and/or other materials provided with the distribution.
31114402Sru * 3. All advertising materials mentioning features or use of this software
32114402Sru *    must display the following acknowledgement:
33114402Sru *    "This product includes cryptographic software written by
34114402Sru *     Eric Young (eay@cryptsoft.com)"
35114402Sru *    The word 'cryptographic' can be left out if the rouines from the library
36114402Sru *    being used are not cryptographic related :-).
37114402Sru * 4. If you include any Windows specific code (or a derivative thereof) from
38114402Sru *    the apps directory (application code) you must include an acknowledgement:
39114402Sru *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40114402Sru *
41114402Sru * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42114402Sru * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43114402Sru * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44114402Sru * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45114402Sru * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46114402Sru * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47114402Sru * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48151497Sru * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49114402Sru * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50151497Sru * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51114402Sru * SUCH DAMAGE.
52114402Sru *
53114402Sru * The licence and distribution terms for any publically available version or
54114402Sru * derivative of this code cannot be changed.  i.e. this code cannot simply be
55114402Sru * copied and put under another distribution licence
56114402Sru * [including the GNU Public Licence.]
57114402Sru */
58114402Sru
59114402Sru#ifndef  HEADER_CONF_API_H
60114402Sru#define HEADER_CONF_API_H
61114402Sru
62151497Sru#include <openssl/lhash.h>
63114402Sru#include <openssl/conf.h>
64151497Sru
65151497Sru#ifdef  __cplusplus
66114402Sruextern "C" {
67114402Sru#endif
68114402Sru
69114402Sru/* Up until OpenSSL 0.9.5a, this was new_section */
70CONF_VALUE *_CONF_new_section(CONF *conf, const char *section);
71/* Up until OpenSSL 0.9.5a, this was get_section */
72CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section);
73/* Up until OpenSSL 0.9.5a, this was CONF_get_section */
74STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf,
75					       const char *section);
76
77int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value);
78char *_CONF_get_string(const CONF *conf, const char *section,
79		       const char *name);
80long _CONF_get_number(const CONF *conf, const char *section, const char *name);
81
82int _CONF_new_data(CONF *conf);
83void _CONF_free_data(CONF *conf);
84
85#ifdef  __cplusplus
86}
87#endif
88#endif
89
90