X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fconf%2Fconf_api.h;h=87a954aff63b07ab4fb5570fad7d0e6192f77d2d;hb=3c075bf07f2d57c0272260409bf38fb6f438b016;hp=17642c966cbef6604e1479c45d92cd7ed8fc84b5;hpb=d86b6915bebbd86c46680e24d152f497cd85bc85;p=oweals%2Fopenssl.git diff --git a/crypto/conf/conf_api.h b/crypto/conf/conf_api.h index 17642c966c..87a954aff6 100644 --- a/crypto/conf/conf_api.h +++ b/crypto/conf/conf_api.h @@ -59,24 +59,25 @@ #ifndef HEADER_CONF_API_H #define HEADER_CONF_API_H +#include +#include + #ifdef __cplusplus extern "C" { #endif -#include -#include - -/* This was new_section */ -CONF_VALUE *_CONF_new_section(CONF *conf, char *section); -/* This was get_section */ -CONF_VALUE *_CONF_get_section(CONF *conf, char *section); -/* This was CONF_get_section */ -STACK_OF(CONF_VALUE) *_CONF_get_section_values(CONF *conf, char *section); +/* Up until OpenSSL 0.9.5a, this was new_section */ +CONF_VALUE *_CONF_new_section(CONF *conf, const char *section); +/* Up until OpenSSL 0.9.5a, this was get_section */ +CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section); +/* Up until OpenSSL 0.9.5a, this was CONF_get_section */ +STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, + const char *section); -STACK_OF(CONF_VALUE) *_CONF_get_section_values(CONF *conf, char *section); int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value); -char *_CONF_get_string(CONF *conf, char *section, char *name); -long _CONF_get_number(CONF *conf, char *section, char *name); +char *_CONF_get_string(const CONF *conf, const char *section, + const char *name); +long _CONF_get_number(const CONF *conf, const char *section, const char *name); int _CONF_new_data(CONF *conf); void _CONF_free_data(CONF *conf);