diff options
author | djm <> | 2010-10-01 22:59:01 +0000 |
---|---|---|
committer | djm <> | 2010-10-01 22:59:01 +0000 |
commit | fe047d8b632246cb2db3234a0a4f32e5c318857b (patch) | |
tree | 939b752540947d33507b3acc48d76a8bfb7c3dc3 /src/lib/libcrypto/conf/conf_lib.c | |
parent | 2ea67f4aa254b09ded62e6e14fc893bbe6381579 (diff) | |
download | openbsd-fe047d8b632246cb2db3234a0a4f32e5c318857b.tar.gz openbsd-fe047d8b632246cb2db3234a0a4f32e5c318857b.tar.bz2 openbsd-fe047d8b632246cb2db3234a0a4f32e5c318857b.zip |
resolve conflicts, fix local changes
Diffstat (limited to 'src/lib/libcrypto/conf/conf_lib.c')
-rw-r--r-- | src/lib/libcrypto/conf/conf_lib.c | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/src/lib/libcrypto/conf/conf_lib.c b/src/lib/libcrypto/conf/conf_lib.c index 2a3399d269..54046defca 100644 --- a/src/lib/libcrypto/conf/conf_lib.c +++ b/src/lib/libcrypto/conf/conf_lib.c | |||
@@ -69,7 +69,7 @@ static CONF_METHOD *default_CONF_method=NULL; | |||
69 | 69 | ||
70 | /* Init a 'CONF' structure from an old LHASH */ | 70 | /* Init a 'CONF' structure from an old LHASH */ |
71 | 71 | ||
72 | void CONF_set_nconf(CONF *conf, LHASH *hash) | 72 | void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash) |
73 | { | 73 | { |
74 | if (default_CONF_method == NULL) | 74 | if (default_CONF_method == NULL) |
75 | default_CONF_method = NCONF_default(); | 75 | default_CONF_method = NCONF_default(); |
@@ -87,9 +87,10 @@ int CONF_set_default_method(CONF_METHOD *meth) | |||
87 | return 1; | 87 | return 1; |
88 | } | 88 | } |
89 | 89 | ||
90 | LHASH *CONF_load(LHASH *conf, const char *file, long *eline) | 90 | LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, |
91 | long *eline) | ||
91 | { | 92 | { |
92 | LHASH *ltmp; | 93 | LHASH_OF(CONF_VALUE) *ltmp; |
93 | BIO *in=NULL; | 94 | BIO *in=NULL; |
94 | 95 | ||
95 | #ifdef OPENSSL_SYS_VMS | 96 | #ifdef OPENSSL_SYS_VMS |
@@ -110,10 +111,11 @@ LHASH *CONF_load(LHASH *conf, const char *file, long *eline) | |||
110 | } | 111 | } |
111 | 112 | ||
112 | #ifndef OPENSSL_NO_FP_API | 113 | #ifndef OPENSSL_NO_FP_API |
113 | LHASH *CONF_load_fp(LHASH *conf, FILE *fp,long *eline) | 114 | LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, |
115 | long *eline) | ||
114 | { | 116 | { |
115 | BIO *btmp; | 117 | BIO *btmp; |
116 | LHASH *ltmp; | 118 | LHASH_OF(CONF_VALUE) *ltmp; |
117 | if(!(btmp = BIO_new_fp(fp, BIO_NOCLOSE))) { | 119 | if(!(btmp = BIO_new_fp(fp, BIO_NOCLOSE))) { |
118 | CONFerr(CONF_F_CONF_LOAD_FP,ERR_R_BUF_LIB); | 120 | CONFerr(CONF_F_CONF_LOAD_FP,ERR_R_BUF_LIB); |
119 | return NULL; | 121 | return NULL; |
@@ -124,7 +126,8 @@ LHASH *CONF_load_fp(LHASH *conf, FILE *fp,long *eline) | |||
124 | } | 126 | } |
125 | #endif | 127 | #endif |
126 | 128 | ||
127 | LHASH *CONF_load_bio(LHASH *conf, BIO *bp,long *eline) | 129 | LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, |
130 | long *eline) | ||
128 | { | 131 | { |
129 | CONF ctmp; | 132 | CONF ctmp; |
130 | int ret; | 133 | int ret; |
@@ -137,7 +140,8 @@ LHASH *CONF_load_bio(LHASH *conf, BIO *bp,long *eline) | |||
137 | return NULL; | 140 | return NULL; |
138 | } | 141 | } |
139 | 142 | ||
140 | STACK_OF(CONF_VALUE) *CONF_get_section(LHASH *conf,const char *section) | 143 | STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, |
144 | const char *section) | ||
141 | { | 145 | { |
142 | if (conf == NULL) | 146 | if (conf == NULL) |
143 | { | 147 | { |
@@ -151,7 +155,8 @@ STACK_OF(CONF_VALUE) *CONF_get_section(LHASH *conf,const char *section) | |||
151 | } | 155 | } |
152 | } | 156 | } |
153 | 157 | ||
154 | char *CONF_get_string(LHASH *conf,const char *group,const char *name) | 158 | char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf,const char *group, |
159 | const char *name) | ||
155 | { | 160 | { |
156 | if (conf == NULL) | 161 | if (conf == NULL) |
157 | { | 162 | { |
@@ -165,7 +170,8 @@ char *CONF_get_string(LHASH *conf,const char *group,const char *name) | |||
165 | } | 170 | } |
166 | } | 171 | } |
167 | 172 | ||
168 | long CONF_get_number(LHASH *conf,const char *group,const char *name) | 173 | long CONF_get_number(LHASH_OF(CONF_VALUE) *conf,const char *group, |
174 | const char *name) | ||
169 | { | 175 | { |
170 | int status; | 176 | int status; |
171 | long result = 0; | 177 | long result = 0; |
@@ -189,7 +195,7 @@ long CONF_get_number(LHASH *conf,const char *group,const char *name) | |||
189 | return result; | 195 | return result; |
190 | } | 196 | } |
191 | 197 | ||
192 | void CONF_free(LHASH *conf) | 198 | void CONF_free(LHASH_OF(CONF_VALUE) *conf) |
193 | { | 199 | { |
194 | CONF ctmp; | 200 | CONF ctmp; |
195 | CONF_set_nconf(&ctmp, conf); | 201 | CONF_set_nconf(&ctmp, conf); |
@@ -197,7 +203,7 @@ void CONF_free(LHASH *conf) | |||
197 | } | 203 | } |
198 | 204 | ||
199 | #ifndef OPENSSL_NO_FP_API | 205 | #ifndef OPENSSL_NO_FP_API |
200 | int CONF_dump_fp(LHASH *conf, FILE *out) | 206 | int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out) |
201 | { | 207 | { |
202 | BIO *btmp; | 208 | BIO *btmp; |
203 | int ret; | 209 | int ret; |
@@ -212,7 +218,7 @@ int CONF_dump_fp(LHASH *conf, FILE *out) | |||
212 | } | 218 | } |
213 | #endif | 219 | #endif |
214 | 220 | ||
215 | int CONF_dump_bio(LHASH *conf, BIO *out) | 221 | int CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out) |
216 | { | 222 | { |
217 | CONF ctmp; | 223 | CONF ctmp; |
218 | CONF_set_nconf(&ctmp, conf); | 224 | CONF_set_nconf(&ctmp, conf); |