int ret;
BIO *in=NULL;
-#ifdef OPENSSL_SYS_VMS
- in=BIO_new_file(name, "r");
-#else
in=BIO_new_file(name, "rb");
-#endif
if (in == NULL)
{
if (ERR_GET_REASON(ERR_peek_last_error()) == BIO_R_NO_SUCH_FILE)
LHASH_OF(CONF_VALUE) *ltmp;
BIO *in=NULL;
-#ifdef OPENSSL_SYS_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);
return BUF_strdup(file);
len = strlen(X509_get_default_cert_area());
-#ifndef OPENSSL_SYS_VMS
- len++;
-#endif
len += strlen(OPENSSL_CONF);
file = malloc(len + 1);
if (!file)
return NULL;
BUF_strlcpy(file,X509_get_default_cert_area(),len + 1);
-#ifndef OPENSSL_SYS_VMS
- BUF_strlcat(file,"/",len + 1);
-#endif
BUF_strlcat(file,OPENSSL_CONF,len + 1);
return file;
int ret;
BIO *in=NULL;
-#ifdef OPENSSL_SYS_VMS
- in=BIO_new_file(name, "r");
-#else
in=BIO_new_file(name, "rb");
-#endif
if (in == NULL)
{
if (ERR_GET_REASON(ERR_peek_last_error()) == BIO_R_NO_SUCH_FILE)
LHASH_OF(CONF_VALUE) *ltmp;
BIO *in=NULL;
-#ifdef OPENSSL_SYS_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);
return BUF_strdup(file);
len = strlen(X509_get_default_cert_area());
-#ifndef OPENSSL_SYS_VMS
- len++;
-#endif
len += strlen(OPENSSL_CONF);
file = malloc(len + 1);
if (!file)
return NULL;
BUF_strlcpy(file,X509_get_default_cert_area(),len + 1);
-#ifndef OPENSSL_SYS_VMS
- BUF_strlcat(file,"/",len + 1);
-#endif
BUF_strlcat(file,OPENSSL_CONF,len + 1);
return file;