diff options
| author | djm <> | 2011-11-03 02:34:33 +0000 |
|---|---|---|
| committer | djm <> | 2011-11-03 02:34:33 +0000 |
| commit | fc7396568e61a510b9336d6c220aaa889c03060f (patch) | |
| tree | a8fc08e33aecdd21cb07aa47c8a3a9db715f2ef3 /src/lib/libcrypto/conf | |
| parent | 1e8701dd2507fadf6d232d93eb4299a8b79c66d5 (diff) | |
| download | openbsd-fc7396568e61a510b9336d6c220aaa889c03060f.tar.gz openbsd-fc7396568e61a510b9336d6c220aaa889c03060f.tar.bz2 openbsd-fc7396568e61a510b9336d6c220aaa889c03060f.zip | |
openssl-1.0.0e: resolve conflicts
Diffstat (limited to 'src/lib/libcrypto/conf')
| -rw-r--r-- | src/lib/libcrypto/conf/conf_api.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/conf/conf_def.c | 13 |
2 files changed, 3 insertions, 13 deletions
diff --git a/src/lib/libcrypto/conf/conf_api.c b/src/lib/libcrypto/conf/conf_api.c index 22617e5fa1..f5fcbb9f6b 100644 --- a/src/lib/libcrypto/conf/conf_api.c +++ b/src/lib/libcrypto/conf/conf_api.c | |||
| @@ -64,6 +64,7 @@ | |||
| 64 | #endif | 64 | #endif |
| 65 | 65 | ||
| 66 | #include <assert.h> | 66 | #include <assert.h> |
| 67 | #include <stdlib.h> | ||
| 67 | #include <string.h> | 68 | #include <string.h> |
| 68 | #include <openssl/conf.h> | 69 | #include <openssl/conf.h> |
| 69 | #include <openssl/conf_api.h> | 70 | #include <openssl/conf_api.h> |
| @@ -285,7 +286,7 @@ CONF_VALUE *_CONF_new_section(CONF *conf, const char *section) | |||
| 285 | v->value=(char *)sk; | 286 | v->value=(char *)sk; |
| 286 | 287 | ||
| 287 | vv=lh_CONF_VALUE_insert(conf->data,v); | 288 | vv=lh_CONF_VALUE_insert(conf->data,v); |
| 288 | assert(vv == NULL); | 289 | OPENSSL_assert(vv == NULL); |
| 289 | ok=1; | 290 | ok=1; |
| 290 | err: | 291 | err: |
| 291 | if (!ok) | 292 | if (!ok) |
diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c index 0b571b0394..cf951320af 100644 --- a/src/lib/libcrypto/conf/conf_def.c +++ b/src/lib/libcrypto/conf/conf_def.c | |||
| @@ -213,13 +213,12 @@ static int def_load_bio(CONF *conf, BIO *in, long *line) | |||
| 213 | int bufnum=0,i,ii; | 213 | int bufnum=0,i,ii; |
| 214 | BUF_MEM *buff=NULL; | 214 | BUF_MEM *buff=NULL; |
| 215 | char *s,*p,*end; | 215 | char *s,*p,*end; |
| 216 | int again,n; | 216 | int again; |
| 217 | long eline=0; | 217 | long eline=0; |
| 218 | char btmp[DECIMAL_SIZE(eline)+1]; | 218 | char btmp[DECIMAL_SIZE(eline)+1]; |
| 219 | CONF_VALUE *v=NULL,*tv; | 219 | CONF_VALUE *v=NULL,*tv; |
| 220 | CONF_VALUE *sv=NULL; | 220 | CONF_VALUE *sv=NULL; |
| 221 | char *section=NULL,*buf; | 221 | char *section=NULL,*buf; |
| 222 | STACK_OF(CONF_VALUE) *section_sk=NULL,*ts; | ||
| 223 | char *start,*psection,*pname; | 222 | char *start,*psection,*pname; |
| 224 | void *h = (void *)(conf->data); | 223 | void *h = (void *)(conf->data); |
| 225 | 224 | ||
| @@ -250,7 +249,6 @@ static int def_load_bio(CONF *conf, BIO *in, long *line) | |||
| 250 | CONF_R_UNABLE_TO_CREATE_NEW_SECTION); | 249 | CONF_R_UNABLE_TO_CREATE_NEW_SECTION); |
| 251 | goto err; | 250 | goto err; |
| 252 | } | 251 | } |
| 253 | section_sk=(STACK_OF(CONF_VALUE) *)sv->value; | ||
| 254 | 252 | ||
| 255 | bufnum=0; | 253 | bufnum=0; |
| 256 | again=0; | 254 | again=0; |
| @@ -309,7 +307,6 @@ static int def_load_bio(CONF *conf, BIO *in, long *line) | |||
| 309 | buf=buff->data; | 307 | buf=buff->data; |
| 310 | 308 | ||
| 311 | clear_comments(conf, buf); | 309 | clear_comments(conf, buf); |
| 312 | n=strlen(buf); | ||
| 313 | s=eat_ws(conf, buf); | 310 | s=eat_ws(conf, buf); |
| 314 | if (IS_EOF(conf,*s)) continue; /* blank line */ | 311 | if (IS_EOF(conf,*s)) continue; /* blank line */ |
| 315 | if (*s == '[') | 312 | if (*s == '[') |
| @@ -343,7 +340,6 @@ again: | |||
| 343 | CONF_R_UNABLE_TO_CREATE_NEW_SECTION); | 340 | CONF_R_UNABLE_TO_CREATE_NEW_SECTION); |
| 344 | goto err; | 341 | goto err; |
| 345 | } | 342 | } |
| 346 | section_sk=(STACK_OF(CONF_VALUE) *)sv->value; | ||
| 347 | continue; | 343 | continue; |
| 348 | } | 344 | } |
| 349 | else | 345 | else |
| @@ -406,13 +402,9 @@ again: | |||
| 406 | CONF_R_UNABLE_TO_CREATE_NEW_SECTION); | 402 | CONF_R_UNABLE_TO_CREATE_NEW_SECTION); |
| 407 | goto err; | 403 | goto err; |
| 408 | } | 404 | } |
| 409 | ts=(STACK_OF(CONF_VALUE) *)tv->value; | ||
| 410 | } | 405 | } |
| 411 | else | 406 | else |
| 412 | { | ||
| 413 | tv=sv; | 407 | tv=sv; |
| 414 | ts=section_sk; | ||
| 415 | } | ||
| 416 | #if 1 | 408 | #if 1 |
| 417 | if (_CONF_add_string(conf, tv, v) == 0) | 409 | if (_CONF_add_string(conf, tv, v) == 0) |
| 418 | { | 410 | { |
| @@ -465,9 +457,6 @@ err: | |||
| 465 | 457 | ||
| 466 | static void clear_comments(CONF *conf, char *p) | 458 | static void clear_comments(CONF *conf, char *p) |
| 467 | { | 459 | { |
| 468 | char *to; | ||
| 469 | |||
| 470 | to=p; | ||
| 471 | for (;;) | 460 | for (;;) |
| 472 | { | 461 | { |
| 473 | if (IS_FCOMMENT(conf,*p)) | 462 | if (IS_FCOMMENT(conf,*p)) |
