diff options
| author | markus <> | 2002-09-05 22:44:52 +0000 |
|---|---|---|
| committer | markus <> | 2002-09-05 22:44:52 +0000 |
| commit | 715a204e4615e4a70a466fcb383a9a57cad5e6b8 (patch) | |
| tree | 2d2e93c4a34d1f7f04aba73706353332d7700641 /src/lib/libcrypto/conf | |
| parent | 15b5d84f9da2ce4bfae8580e56e34a859f74ad71 (diff) | |
| download | openbsd-715a204e4615e4a70a466fcb383a9a57cad5e6b8.tar.gz openbsd-715a204e4615e4a70a466fcb383a9a57cad5e6b8.tar.bz2 openbsd-715a204e4615e4a70a466fcb383a9a57cad5e6b8.zip | |
import openssl-0.9.7-beta3
Diffstat (limited to 'src/lib/libcrypto/conf')
| -rw-r--r-- | src/lib/libcrypto/conf/conf.h | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/conf/conf_def.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/conf/conf_lib.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/conf/conf_mod.c | 2 |
4 files changed, 11 insertions, 7 deletions
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h index 3c03fb19c0..f4671442ab 100644 --- a/src/lib/libcrypto/conf/conf.h +++ b/src/lib/libcrypto/conf/conf.h | |||
| @@ -129,6 +129,7 @@ int CONF_dump_fp(LHASH *conf, FILE *out); | |||
| 129 | int CONF_dump_bio(LHASH *conf, BIO *out); | 129 | int CONF_dump_bio(LHASH *conf, BIO *out); |
| 130 | 130 | ||
| 131 | void OPENSSL_config(const char *config_name); | 131 | void OPENSSL_config(const char *config_name); |
| 132 | void OPENSSL_no_config(void); | ||
| 132 | 133 | ||
| 133 | /* New conf code. The semantics are different from the functions above. | 134 | /* New conf code. The semantics are different from the functions above. |
| 134 | If that wasn't the case, the above functions would have been replaced */ | 135 | If that wasn't the case, the above functions would have been replaced */ |
| @@ -141,10 +142,10 @@ struct conf_st | |||
| 141 | }; | 142 | }; |
| 142 | 143 | ||
| 143 | CONF *NCONF_new(CONF_METHOD *meth); | 144 | CONF *NCONF_new(CONF_METHOD *meth); |
| 144 | CONF_METHOD *NCONF_default(); | 145 | CONF_METHOD *NCONF_default(void); |
| 145 | CONF_METHOD *NCONF_WIN32(); | 146 | CONF_METHOD *NCONF_WIN32(void); |
| 146 | #if 0 /* Just to give you an idea of what I have in mind */ | 147 | #if 0 /* Just to give you an idea of what I have in mind */ |
| 147 | CONF_METHOD *NCONF_XML(); | 148 | CONF_METHOD *NCONF_XML(void); |
| 148 | #endif | 149 | #endif |
| 149 | void NCONF_free(CONF *conf); | 150 | void NCONF_free(CONF *conf); |
| 150 | void NCONF_free_data(CONF *conf); | 151 | void NCONF_free_data(CONF *conf); |
| @@ -176,6 +177,7 @@ int CONF_modules_load_file(const char *filename, const char *appname, | |||
| 176 | unsigned long flags); | 177 | unsigned long flags); |
| 177 | void CONF_modules_unload(int all); | 178 | void CONF_modules_unload(int all); |
| 178 | void CONF_modules_finish(void); | 179 | void CONF_modules_finish(void); |
| 180 | void CONF_modules_free(void); | ||
| 179 | int CONF_module_add(const char *name, conf_init_func *ifunc, | 181 | int CONF_module_add(const char *name, conf_init_func *ifunc, |
| 180 | conf_finish_func *ffunc); | 182 | conf_finish_func *ffunc); |
| 181 | 183 | ||
diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c index 31f2766246..5e194de60e 100644 --- a/src/lib/libcrypto/conf/conf_def.c +++ b/src/lib/libcrypto/conf/conf_def.c | |||
| @@ -67,6 +67,7 @@ | |||
| 67 | #include "conf_def.h" | 67 | #include "conf_def.h" |
| 68 | #include <openssl/buffer.h> | 68 | #include <openssl/buffer.h> |
| 69 | #include <openssl/err.h> | 69 | #include <openssl/err.h> |
| 70 | #include "cryptlib.h" | ||
| 70 | 71 | ||
| 71 | static char *eat_ws(CONF *conf, char *p); | 72 | static char *eat_ws(CONF *conf, char *p); |
| 72 | static char *eat_alpha_numeric(CONF *conf, char *p); | 73 | static char *eat_alpha_numeric(CONF *conf, char *p); |
| @@ -208,12 +209,12 @@ static int def_load(CONF *conf, const char *name, long *line) | |||
| 208 | static int def_load_bio(CONF *conf, BIO *in, long *line) | 209 | static int def_load_bio(CONF *conf, BIO *in, long *line) |
| 209 | { | 210 | { |
| 210 | #define BUFSIZE 512 | 211 | #define BUFSIZE 512 |
| 211 | char btmp[16]; | ||
| 212 | int bufnum=0,i,ii; | 212 | int bufnum=0,i,ii; |
| 213 | BUF_MEM *buff=NULL; | 213 | BUF_MEM *buff=NULL; |
| 214 | char *s,*p,*end; | 214 | char *s,*p,*end; |
| 215 | int again,n; | 215 | int again,n; |
| 216 | long eline=0; | 216 | long eline=0; |
| 217 | char btmp[DECIMAL_SIZE(eline)+1]; | ||
| 217 | CONF_VALUE *v=NULL,*tv; | 218 | CONF_VALUE *v=NULL,*tv; |
| 218 | CONF_VALUE *sv=NULL; | 219 | CONF_VALUE *sv=NULL; |
| 219 | char *section=NULL,*buf; | 220 | char *section=NULL,*buf; |
diff --git a/src/lib/libcrypto/conf/conf_lib.c b/src/lib/libcrypto/conf/conf_lib.c index 7998f34c7b..6a3cf109dd 100644 --- a/src/lib/libcrypto/conf/conf_lib.c +++ b/src/lib/libcrypto/conf/conf_lib.c | |||
| @@ -382,8 +382,9 @@ int NCONF_dump_bio(const CONF *conf, BIO *out) | |||
| 382 | return conf->meth->dump(conf, out); | 382 | return conf->meth->dump(conf, out); |
| 383 | } | 383 | } |
| 384 | 384 | ||
| 385 | |||
| 385 | /* This function should be avoided */ | 386 | /* This function should be avoided */ |
| 386 | #undef NCONF_get_number | 387 | #if 0 |
| 387 | long NCONF_get_number(CONF *conf,char *group,char *name) | 388 | long NCONF_get_number(CONF *conf,char *group,char *name) |
| 388 | { | 389 | { |
| 389 | int status; | 390 | int status; |
| @@ -397,4 +398,4 @@ long NCONF_get_number(CONF *conf,char *group,char *name) | |||
| 397 | } | 398 | } |
| 398 | return ret; | 399 | return ret; |
| 399 | } | 400 | } |
| 400 | 401 | #endif | |
diff --git a/src/lib/libcrypto/conf/conf_mod.c b/src/lib/libcrypto/conf/conf_mod.c index f92babc2e2..edcc08921c 100644 --- a/src/lib/libcrypto/conf/conf_mod.c +++ b/src/lib/libcrypto/conf/conf_mod.c | |||
| @@ -230,7 +230,7 @@ static int module_run(const CONF *cnf, char *name, char *value, | |||
| 230 | { | 230 | { |
| 231 | if (!(flags & CONF_MFLAGS_SILENT)) | 231 | if (!(flags & CONF_MFLAGS_SILENT)) |
| 232 | { | 232 | { |
| 233 | char rcode[10]; | 233 | char rcode[DECIMAL_SIZE(ret)+1]; |
| 234 | CONFerr(CONF_F_CONF_MODULES_LOAD, CONF_R_MODULE_INITIALIZATION_ERROR); | 234 | CONFerr(CONF_F_CONF_MODULES_LOAD, CONF_R_MODULE_INITIALIZATION_ERROR); |
| 235 | sprintf(rcode, "%-8d", ret); | 235 | sprintf(rcode, "%-8d", ret); |
| 236 | ERR_add_error_data(6, "module=", name, ", value=", value, ", retcode=", rcode); | 236 | ERR_add_error_data(6, "module=", name, ", value=", value, ", retcode=", rcode); |
