projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a couple of outstanding issues: update STATUS file, fix NO_FP_API problems.
[openssl.git]
/
crypto
/
conf
/
conf.c
diff --git
a/crypto/conf/conf.c
b/crypto/conf/conf.c
index 7d8b89168a2d96bda83c2739f34d172f4e818163..25b3ddfea975fd5d6c8cd3262cfa9818bfc1a8d7 100644
(file)
--- a/
crypto/conf/conf.c
+++ b/
crypto/conf/conf.c
@@
-86,28
+86,21
@@
const char *CONF_version="CONF" OPENSSL_VERSION_PTEXT;
LHASH *CONF_load(LHASH *h, const char *file, long *line)
{
LHASH *ltmp;
LHASH *CONF_load(LHASH *h, const char *file, long *line)
{
LHASH *ltmp;
-
FILE
*in=NULL;
+
BIO
*in=NULL;
-#ifdef VMS
- in=fopen(file,"r");
-#else
- in=fopen(file,"rb");
-#endif
+ in=BIO_new_file(file, "rb");
if (in == NULL)
{
if (in == NULL)
{
- SYSerr(SYS_F_FOPEN,get_last_sys_error());
- ERR_set_error_data(BUF_strdup(file),
- ERR_TXT_MALLOCED|ERR_TXT_STRING);
CONFerr(CONF_F_CONF_LOAD,ERR_R_SYS_LIB);
return NULL;
}
CONFerr(CONF_F_CONF_LOAD,ERR_R_SYS_LIB);
return NULL;
}
- ltmp = CONF_load_
fp
(h, in, line);
-
fclos
e(in);
+ ltmp = CONF_load_
bio
(h, in, line);
+
BIO_fre
e(in);
return ltmp;
}
return ltmp;
}
-
+#ifndef NO_FP_API
LHASH *CONF_load_fp(LHASH *h, FILE *in, long *line)
{
BIO *btmp;
LHASH *CONF_load_fp(LHASH *h, FILE *in, long *line)
{
BIO *btmp;
@@
-120,6
+113,7
@@
LHASH *CONF_load_fp(LHASH *h, FILE *in, long *line)
BIO_free(btmp);
return ltmp;
}
BIO_free(btmp);
return ltmp;
}
+#endif
LHASH *CONF_load_bio(LHASH *h, BIO *in, long *line)
{
LHASH *CONF_load_bio(LHASH *h, BIO *in, long *line)
{