diff options
Diffstat (limited to 'src/lib/libcrypto/conf/conf.h')
-rw-r--r-- | src/lib/libcrypto/conf/conf.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h index 1446226a16..e7c5150097 100644 --- a/src/lib/libcrypto/conf/conf.h +++ b/src/lib/libcrypto/conf/conf.h | |||
@@ -63,8 +63,10 @@ | |||
63 | extern "C" { | 63 | extern "C" { |
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | #include "stack.h" | 66 | #include <openssl/bio.h> |
67 | #include "lhash.h" | 67 | #include <openssl/lhash.h> |
68 | #include <openssl/stack.h> | ||
69 | #include <openssl/safestack.h> | ||
68 | 70 | ||
69 | typedef struct | 71 | typedef struct |
70 | { | 72 | { |
@@ -73,31 +75,29 @@ typedef struct | |||
73 | char *value; | 75 | char *value; |
74 | } CONF_VALUE; | 76 | } CONF_VALUE; |
75 | 77 | ||
76 | #ifndef NOPROTO | 78 | DECLARE_STACK_OF(CONF_VALUE) |
77 | 79 | ||
78 | LHASH *CONF_load(LHASH *conf,char *file,long *eline); | 80 | LHASH *CONF_load(LHASH *conf,const char *file,long *eline); |
79 | STACK *CONF_get_section(LHASH *conf,char *section); | 81 | LHASH *CONF_load_fp(LHASH *conf, FILE *fp,long *eline); |
82 | LHASH *CONF_load_bio(LHASH *conf, BIO *bp,long *eline); | ||
83 | STACK_OF(CONF_VALUE) *CONF_get_section(LHASH *conf,char *section); | ||
80 | char *CONF_get_string(LHASH *conf,char *group,char *name); | 84 | char *CONF_get_string(LHASH *conf,char *group,char *name); |
81 | long CONF_get_number(LHASH *conf,char *group,char *name); | 85 | long CONF_get_number(LHASH *conf,char *group,char *name); |
82 | void CONF_free(LHASH *conf); | 86 | void CONF_free(LHASH *conf); |
83 | void ERR_load_CONF_strings(void ); | 87 | void ERR_load_CONF_strings(void ); |
84 | 88 | ||
85 | #else | ||
86 | |||
87 | LHASH *CONF_load(); | ||
88 | STACK *CONF_get_section(); | ||
89 | char *CONF_get_string(); | ||
90 | long CONF_get_number(); | ||
91 | void CONF_free(); | ||
92 | void ERR_load_CONF_strings(); | ||
93 | |||
94 | #endif | ||
95 | 89 | ||
96 | /* BEGIN ERROR CODES */ | 90 | /* BEGIN ERROR CODES */ |
91 | /* The following lines are auto generated by the script mkerr.pl. Any changes | ||
92 | * made after this point may be overwritten when the script is next run. | ||
93 | */ | ||
94 | |||
97 | /* Error codes for the CONF functions. */ | 95 | /* Error codes for the CONF functions. */ |
98 | 96 | ||
99 | /* Function codes. */ | 97 | /* Function codes. */ |
100 | #define CONF_F_CONF_LOAD 100 | 98 | #define CONF_F_CONF_LOAD 100 |
99 | #define CONF_F_CONF_LOAD_BIO 102 | ||
100 | #define CONF_F_CONF_LOAD_FP 103 | ||
101 | #define CONF_F_STR_COPY 101 | 101 | #define CONF_F_STR_COPY 101 |
102 | 102 | ||
103 | /* Reason codes. */ | 103 | /* Reason codes. */ |
@@ -106,7 +106,7 @@ void ERR_load_CONF_strings(); | |||
106 | #define CONF_R_NO_CLOSE_BRACE 102 | 106 | #define CONF_R_NO_CLOSE_BRACE 102 |
107 | #define CONF_R_UNABLE_TO_CREATE_NEW_SECTION 103 | 107 | #define CONF_R_UNABLE_TO_CREATE_NEW_SECTION 103 |
108 | #define CONF_R_VARIABLE_HAS_NO_VALUE 104 | 108 | #define CONF_R_VARIABLE_HAS_NO_VALUE 104 |
109 | 109 | ||
110 | #ifdef __cplusplus | 110 | #ifdef __cplusplus |
111 | } | 111 | } |
112 | #endif | 112 | #endif |