From 03c4d82fa1a2fced7aa8ae2c4830722015e3f4f4 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 20 Feb 2001 13:23:42 +0000 Subject: [PATCH] Include OpenSSL header files earlier so macros like OPENSSL_SYS_VMS get a chance to be defined. Make a batter file name translator (uhm, no, that's not the finished variant :-)). --- crypto/dso/dso_vms.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crypto/dso/dso_vms.c b/crypto/dso/dso_vms.c index f492202793..703b19ed69 100644 --- a/crypto/dso/dso_vms.c +++ b/crypto/dso/dso_vms.c @@ -59,6 +59,8 @@ #include #include #include +#include "cryptlib.h" +#include #ifdef OPENSSL_SYS_VMS #pragma message disable DOLLARID #include @@ -67,8 +69,6 @@ #include #include #endif -#include "cryptlib.h" -#include #ifndef OPENSSL_SYS_VMS DSO_METHOD *DSO_METHOD_vms(void) @@ -89,7 +89,7 @@ static int vms_init(DSO *dso); static int vms_finish(DSO *dso); static long vms_ctrl(DSO *dso, int cmd, long larg, void *parg); #endif -static char *vms_name_converter(DSO *dso); +static char *vms_name_converter(DSO *dso, const char *filename); static DSO_METHOD dso_meth_vms = { "OpenSSL 'VMS' shared library method", @@ -366,7 +366,10 @@ static DSO_FUNC_TYPE vms_bind_func(DSO *dso, const char *symname) static char *vms_name_converter(DSO *dso, const char *filename) { - return(filename); + int len = strlen(filename); + char *not_translated = OPENSSL_malloc(len+1); + strcpy(not_translated,filename); + return(not_translated); } #endif /* OPENSSL_SYS_VMS */ -- 2.34.1