On VMS, the norm is still that symbols are uppercased, so for now it's better
[openssl.git] / crypto / dso / dso_win32.c
index e7d0a2be2835c8aba4eee35b04d5661423df3a55..af8586d7542364c801b26c3c1783440274f7dd51 100644 (file)
@@ -61,7 +61,7 @@
 #include "cryptlib.h"
 #include <openssl/dso.h>
 
-#ifndef WIN32
+#ifndef OPENSSL_SYS_WIN32
 DSO_METHOD *DSO_METHOD_win32(void)
        {
        return NULL;
@@ -126,6 +126,7 @@ static int win32_load(DSO *dso)
        if(h == NULL)
                {
                DSOerr(DSO_F_WIN32_LOAD,DSO_R_LOAD_FAILED);
+               ERR_add_error_data(3, "filename(", filename, ")");
                goto err;
                }
        p = (HINSTANCE *)OPENSSL_malloc(sizeof(HINSTANCE));
@@ -210,6 +211,7 @@ static void *win32_bind_var(DSO *dso, const char *symname)
        if(sym == NULL)
                {
                DSOerr(DSO_F_WIN32_BIND_VAR,DSO_R_SYM_FAILURE);
+               ERR_add_error_data(3, "symname(", symname, ")");
                return(NULL);
                }
        return(sym);
@@ -240,6 +242,7 @@ static DSO_FUNC_TYPE win32_bind_func(DSO *dso, const char *symname)
        if(sym == NULL)
                {
                DSOerr(DSO_F_WIN32_BIND_FUNC,DSO_R_SYM_FAILURE);
+               ERR_add_error_data(3, "symname(", symname, ")");
                return(NULL);
                }
        return((DSO_FUNC_TYPE)sym);
@@ -273,4 +276,4 @@ static char *win32_name_converter(DSO *dso, const char *filename)
        return(translated);
        }
 
-#endif /* WIN32 */
+#endif /* OPENSSL_SYS_WIN32 */