diff options
| author | djm <> | 2010-10-01 22:59:01 +0000 |
|---|---|---|
| committer | djm <> | 2010-10-01 22:59:01 +0000 |
| commit | 8922d4bc4a8b8893d72a48deb2cdf58215f98505 (patch) | |
| tree | 939b752540947d33507b3acc48d76a8bfb7c3dc3 /src/lib/libcrypto/conf/conf_def.c | |
| parent | 76262f7bf9262f965142b1b2b2105cb279c5c696 (diff) | |
| download | openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.tar.gz openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.tar.bz2 openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.zip | |
resolve conflicts, fix local changes
Diffstat (limited to 'src/lib/libcrypto/conf/conf_def.c')
| -rw-r--r-- | src/lib/libcrypto/conf/conf_def.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c index d8bce8732a..0b571b0394 100644 --- a/src/lib/libcrypto/conf/conf_def.c +++ b/src/lib/libcrypto/conf/conf_def.c | |||
| @@ -129,7 +129,7 @@ static CONF *def_create(CONF_METHOD *meth) | |||
| 129 | { | 129 | { |
| 130 | CONF *ret; | 130 | CONF *ret; |
| 131 | 131 | ||
| 132 | ret = (CONF *)OPENSSL_malloc(sizeof(CONF) + sizeof(unsigned short *)); | 132 | ret = OPENSSL_malloc(sizeof(CONF) + sizeof(unsigned short *)); |
| 133 | if (ret) | 133 | if (ret) |
| 134 | if (meth->init(ret) == 0) | 134 | if (meth->init(ret) == 0) |
| 135 | { | 135 | { |
| @@ -145,7 +145,7 @@ static int def_init_default(CONF *conf) | |||
| 145 | return 0; | 145 | return 0; |
| 146 | 146 | ||
| 147 | conf->meth = &default_method; | 147 | conf->meth = &default_method; |
| 148 | conf->meth_data = (void *)CONF_type_default; | 148 | conf->meth_data = CONF_type_default; |
| 149 | conf->data = NULL; | 149 | conf->data = NULL; |
| 150 | 150 | ||
| 151 | return 1; | 151 | return 1; |
| @@ -722,7 +722,7 @@ static char *scan_dquote(CONF *conf, char *p) | |||
| 722 | return(p); | 722 | return(p); |
| 723 | } | 723 | } |
| 724 | 724 | ||
| 725 | static void dump_value(CONF_VALUE *a, BIO *out) | 725 | static void dump_value_doall_arg(CONF_VALUE *a, BIO *out) |
| 726 | { | 726 | { |
| 727 | if (a->name) | 727 | if (a->name) |
| 728 | BIO_printf(out, "[%s] %s=%s\n", a->section, a->name, a->value); | 728 | BIO_printf(out, "[%s] %s=%s\n", a->section, a->name, a->value); |
| @@ -730,11 +730,12 @@ static void dump_value(CONF_VALUE *a, BIO *out) | |||
| 730 | BIO_printf(out, "[[%s]]\n", a->section); | 730 | BIO_printf(out, "[[%s]]\n", a->section); |
| 731 | } | 731 | } |
| 732 | 732 | ||
| 733 | static IMPLEMENT_LHASH_DOALL_ARG_FN(dump_value, CONF_VALUE *, BIO *) | 733 | static IMPLEMENT_LHASH_DOALL_ARG_FN(dump_value, CONF_VALUE, BIO) |
| 734 | 734 | ||
| 735 | static int def_dump(const CONF *conf, BIO *out) | 735 | static int def_dump(const CONF *conf, BIO *out) |
| 736 | { | 736 | { |
| 737 | lh_doall_arg(conf->data, LHASH_DOALL_ARG_FN(dump_value), out); | 737 | lh_CONF_VALUE_doall_arg(conf->data, LHASH_DOALL_ARG_FN(dump_value), |
| 738 | BIO, out); | ||
| 738 | return 1; | 739 | return 1; |
| 739 | } | 740 | } |
| 740 | 741 | ||
