more spring VMS cleanup
authorgiovanni <giovanni@openbsd.org>
Thu, 17 Apr 2014 22:09:37 +0000 (22:09 +0000)
committergiovanni <giovanni@openbsd.org>
Thu, 17 Apr 2014 22:09:37 +0000 (22:09 +0000)
ok miod@ lteo@

lib/libcrypto/conf/conf_def.c
lib/libcrypto/conf/conf_lib.c
lib/libcrypto/conf/conf_mod.c
lib/libssl/src/crypto/conf/conf_def.c
lib/libssl/src/crypto/conf/conf_lib.c
lib/libssl/src/crypto/conf/conf_mod.c

index 32d4745..39e8b8e 100644 (file)
@@ -186,11 +186,7 @@ static int def_load(CONF *conf, const char *name, long *line)
        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)
index 54046de..6f8866f 100644 (file)
@@ -93,11 +93,7 @@ LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *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);
index 652ad64..ca7b5e6 100644 (file)
@@ -553,9 +553,6 @@ char *CONF_get1_default_config_file(void)
                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);
@@ -563,9 +560,6 @@ char *CONF_get1_default_config_file(void)
        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;
index 32d4745..39e8b8e 100644 (file)
@@ -186,11 +186,7 @@ static int def_load(CONF *conf, const char *name, long *line)
        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)
index 54046de..6f8866f 100644 (file)
@@ -93,11 +93,7 @@ LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *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);
index 652ad64..ca7b5e6 100644 (file)
@@ -553,9 +553,6 @@ char *CONF_get1_default_config_file(void)
                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);
@@ -563,9 +560,6 @@ char *CONF_get1_default_config_file(void)
        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;