summaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/dso/dso_openssl.c')
-rw-r--r--crypto/dso/dso_openssl.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/crypto/dso/dso_openssl.c b/crypto/dso/dso_openssl.c
index 9b0123b29a..070f116217 100644
--- a/crypto/dso/dso_openssl.c
+++ b/crypto/dso/dso_openssl.c
@@ -58,21 +58,14 @@
#include "dso_locl.h"
-/* We just pinch the method from an appropriate "default" method. */
+#if !defined(DSO_VMS) && !defined(DSO_DLCFN) && !defined(DSO_DL) && !defined(DSO_WIN32) && !defined(DSO_DLFCN)
+
+static DSO_METHOD dso_meth_null = {
+ "NULL shared library method"
+};
DSO_METHOD *DSO_METHOD_openssl(void)
{
-#ifdef DEF_DSO_METHOD
- return (DEF_DSO_METHOD());
-#elif defined(DSO_DLFCN)
- return (DSO_METHOD_dlfcn());
-#elif defined(DSO_DL)
- return (DSO_METHOD_dl());
-#elif defined(DSO_WIN32)
- return (DSO_METHOD_win32());
-#elif defined(DSO_VMS)
- return (DSO_METHOD_vms());
-#else
- return (DSO_METHOD_null());
-#endif
+ return dso_meth_null();
}
+#endif