summaryrefslogtreecommitdiffstats
path: root/crypto/conf/conf_def.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2002-01-22 22:29:58 +0000
committerBen Laurie <ben@openssl.org>2002-01-22 22:29:58 +0000
commit0fc5cf0870c0c9e4240e118ee7a86e5d8b4a6891 (patch)
treea607373c3d631901191b83a22b04fa96b3e34a62 /crypto/conf/conf_def.c
parentf78d4a35f865d7678a8b8e7a496e72a19f3df014 (diff)
Make no config file not an error. Move /dev/crypto config to ctrl.
Diffstat (limited to 'crypto/conf/conf_def.c')
-rw-r--r--crypto/conf/conf_def.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/conf/conf_def.c b/crypto/conf/conf_def.c
index 04d128bc75..20b0760fcd 100644
--- a/crypto/conf/conf_def.c
+++ b/crypto/conf/conf_def.c
@@ -192,7 +192,10 @@ static int def_load(CONF *conf, const char *name, long *line)
#endif
if (in == NULL)
{
- CONFerr(CONF_F_CONF_LOAD,ERR_R_SYS_LIB);
+ if(ERR_GET_REASON(ERR_peek_top_error()) == BIO_R_NO_SUCH_FILE)
+ CONFerr(CONF_F_CONF_LOAD,CONF_R_NO_SUCH_FILE);
+ else
+ CONFerr(CONF_F_CONF_LOAD,ERR_R_SYS_LIB);
return 0;
}