conf_api.h revision 109998
1201342Snyan/* conf_api.h */ 2201342Snyan/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3201342Snyan * All rights reserved. 4201342Snyan * 5201342Snyan * This package is an SSL implementation written 6201342Snyan * by Eric Young (eay@cryptsoft.com). 7201342Snyan * The implementation was written so as to conform with Netscapes SSL. 8201342Snyan * 9201342Snyan * This library is free for commercial and non-commercial use as long as 10201342Snyan * the following conditions are aheared to. The following conditions 11201342Snyan * apply to all code found in this distribution, be it the RC4, RSA, 12201342Snyan * lhash, DES, etc., code; not just the SSL code. The SSL documentation 13201342Snyan * included with this distribution is covered by the same copyright terms 14201342Snyan * except that the holder is Tim Hudson (tjh@cryptsoft.com). 15201342Snyan * 16201342Snyan * Copyright remains Eric Young's, and as such any Copyright notices in 17201342Snyan * the code are not to be removed. 18201342Snyan * If this package is used in a product, Eric Young should be given attribution 19201342Snyan * as the author of the parts of the library used. 20201342Snyan * This can be in the form of a textual message at program startup or 21201342Snyan * in documentation (online or textual) provided with the package. 22201342Snyan * 23201342Snyan * Redistribution and use in source and binary forms, with or without 24201342Snyan * modification, are permitted provided that the following conditions 25201342Snyan * are met: 26201342Snyan * 1. Redistributions of source code must retain the copyright 27201342Snyan * notice, this list of conditions and the following disclaimer. 28201342Snyan * 2. Redistributions in binary form must reproduce the above copyright 29201342Snyan * notice, this list of conditions and the following disclaimer in the 30201342Snyan * documentation and/or other materials provided with the distribution. 31201342Snyan * 3. All advertising materials mentioning features or use of this software 32201342Snyan * must display the following acknowledgement: 33201342Snyan * "This product includes cryptographic software written by 34201342Snyan * Eric Young (eay@cryptsoft.com)" 35201342Snyan * The word 'cryptographic' can be left out if the rouines from the library 36201342Snyan * being used are not cryptographic related :-). 37201342Snyan * 4. If you include any Windows specific code (or a derivative thereof) from 38295453Semaste * the apps directory (application code) you must include an acknowledgement: 39295453Semaste * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 40201342Snyan * 41274041Snyan * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 42274041Snyan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 43274041Snyan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 44274041Snyan * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 45274041Snyan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 46201342Snyan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 47201342Snyan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48201342Snyan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 49274041Snyan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 50274041Snyan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 51274041Snyan * SUCH DAMAGE. 52274041Snyan * 53274041Snyan * The licence and distribution terms for any publically available version or 54274041Snyan * derivative of this code cannot be changed. i.e. this code cannot simply be 55274041Snyan * copied and put under another distribution licence 56274041Snyan * [including the GNU Public Licence.] 57201342Snyan */ 58201342Snyan 59201342Snyan#ifndef HEADER_CONF_API_H 60201342Snyan#define HEADER_CONF_API_H 61201342Snyan 62201342Snyan#include <openssl/lhash.h> 63201342Snyan#include <openssl/conf.h> 64201342Snyan 65201342Snyan#ifdef __cplusplus 66201342Snyanextern "C" { 67201342Snyan#endif 68201342Snyan 69201342Snyan/* Up until OpenSSL 0.9.5a, this was new_section */ 70201342SnyanCONF_VALUE *_CONF_new_section(CONF *conf, const char *section); 71201342Snyan/* Up until OpenSSL 0.9.5a, this was get_section */ 72201342SnyanCONF_VALUE *_CONF_get_section(const CONF *conf, const char *section); 73201342Snyan/* Up until OpenSSL 0.9.5a, this was CONF_get_section */ 74201342SnyanSTACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, 75201342Snyan const char *section); 76201342Snyan 77201342Snyanint _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value); 78201342Snyanchar *_CONF_get_string(const CONF *conf, const char *section, 79201342Snyan const char *name); 80201342Snyanlong _CONF_get_number(const CONF *conf, const char *section, const char *name); 81201342Snyan 82201342Snyanint _CONF_new_data(CONF *conf); 83201342Snyanvoid _CONF_free_data(CONF *conf); 84201342Snyan 85201342Snyan#ifdef __cplusplus 86201342Snyan} 87201342Snyan#endif 88201342Snyan#endif 89201342Snyan 90201342Snyan