summaryrefslogtreecommitdiff
path: root/crypto/conf
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>1999-11-12 02:19:05 +0000
committerRichard Levitte <levitte@openssl.org>1999-11-12 02:19:05 +0000
commit03da458a06de15733aa344a469d82bebce256f75 (patch)
treef9497379af3115c25acbe2687ee79f7e149fa519 /crypto/conf
parentf48158b85413677b72a27dd262d1be2931e84a5a (diff)
downloadopenssl-new-03da458a06de15733aa344a469d82bebce256f75.tar.gz
It's possible that considering the configuration file as a binary file
works on Unix and MS-DOS/Windows. It does not under VMS, so open it as text.
Diffstat (limited to 'crypto/conf')
-rw-r--r--crypto/conf/conf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/conf/conf.c b/crypto/conf/conf.c
index 25b3ddfea9..13db218a29 100644
--- a/crypto/conf/conf.c
+++ b/crypto/conf/conf.c
@@ -88,7 +88,11 @@ LHASH *CONF_load(LHASH *h, const char *file, long *line)
LHASH *ltmp;
BIO *in=NULL;
+#ifdef VMS
+ in=BIO_new_file(file, "r");
+#else
in=BIO_new_file(file, "rb");
+#endif
if (in == NULL)
{
CONFerr(CONF_F_CONF_LOAD,ERR_R_SYS_LIB);