diff options
author | Ben Laurie <ben@openssl.org> | 2002-01-22 22:29:58 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2002-01-22 22:29:58 +0000 |
commit | 0fc5cf0870c0c9e4240e118ee7a86e5d8b4a6891 (patch) | |
tree | a607373c3d631901191b83a22b04fa96b3e34a62 /crypto/bio | |
parent | f78d4a35f865d7678a8b8e7a496e72a19f3df014 (diff) |
Make no config file not an error. Move /dev/crypto config to ctrl.
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bio.h | 2 | ||||
-rw-r--r-- | crypto/bio/bio_err.c | 1 | ||||
-rw-r--r-- | crypto/bio/bss_file.c | 5 |
3 files changed, 6 insertions, 2 deletions
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h index 4fa420a6b0..44861f393a 100644 --- a/crypto/bio/bio.h +++ b/crypto/bio/bio.h @@ -618,7 +618,6 @@ int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args); * made after this point may be overwritten when the script is next run. */ void ERR_load_BIO_strings(void); - /* Error codes for the BIO functions. */ /* Function codes. */ @@ -673,6 +672,7 @@ void ERR_load_BIO_strings(void); #define BIO_R_NO_HOSTNAME_SPECIFIED 112 #define BIO_R_NO_PORT_DEFINED 113 #define BIO_R_NO_PORT_SPECIFIED 114 +#define BIO_R_NO_SUCH_FILE 128 #define BIO_R_NULL_PARAMETER 115 #define BIO_R_TAG_MISMATCH 116 #define BIO_R_UNABLE_TO_BIND_SOCKET 117 diff --git a/crypto/bio/bio_err.c b/crypto/bio/bio_err.c index 927b1ac476..99ca3cd0da 100644 --- a/crypto/bio/bio_err.c +++ b/crypto/bio/bio_err.c @@ -120,6 +120,7 @@ static ERR_STRING_DATA BIO_str_reasons[]= {BIO_R_NO_HOSTNAME_SPECIFIED ,"no hostname specified"}, {BIO_R_NO_PORT_DEFINED ,"no port defined"}, {BIO_R_NO_PORT_SPECIFIED ,"no port specified"}, +{BIO_R_NO_SUCH_FILE ,"no such file"}, {BIO_R_NULL_PARAMETER ,"null parameter"}, {BIO_R_TAG_MISMATCH ,"tag mismatch"}, {BIO_R_UNABLE_TO_BIND_SOCKET ,"unable to bind socket"}, diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index 0dee7fa348..e3af936374 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -103,7 +103,10 @@ BIO *BIO_new_file(const char *filename, const char *mode) { SYSerr(SYS_F_FOPEN,get_last_sys_error()); ERR_add_error_data(5,"fopen('",filename,"','",mode,"')"); - BIOerr(BIO_F_BIO_NEW_FILE,ERR_R_SYS_LIB); + if(errno == ENOENT) + BIOerr(BIO_F_BIO_NEW_FILE,BIO_R_NO_SUCH_FILE); + else + BIOerr(BIO_F_BIO_NEW_FILE,ERR_R_SYS_LIB); return(NULL); } if ((ret=BIO_new(BIO_s_file_internal())) == NULL) |