diff options
author | Rich Salz <rsalz@openssl.org> | 2016-03-22 13:35:03 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-22 13:35:03 -0400 |
commit | 38186bfd4e5be7f212d8e460420e081e0ad852e7 (patch) | |
tree | 136ce20d32a4ee06cb692bada686d8cad80f41dd /crypto/dso/dso_dl.c | |
parent | 73decf5975ff1249c51baa0cb3956bb67fbd64dc (diff) |
Have only one DSO_METHOD_openssl
Instead of have every DSO_METHOD_xxx in all platforms, ensure that only
one DSO_METHOD_openssl is available on all platforms.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/dso/dso_dl.c')
-rw-r--r-- | crypto/dso/dso_dl.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/crypto/dso/dso_dl.c b/crypto/dso/dso_dl.c index 1d6e12adc5..72ca4544aa 100644 --- a/crypto/dso/dso_dl.c +++ b/crypto/dso/dso_dl.c @@ -58,12 +58,7 @@ #include "dso_locl.h" -#ifndef DSO_DL -DSO_METHOD *DSO_METHOD_dl(void) -{ - return NULL; -} -#else +#ifdef DSO_DL # include <dl.h> @@ -95,9 +90,9 @@ static DSO_METHOD dso_meth_dl = { dl_globallookup }; -DSO_METHOD *DSO_METHOD_dl(void) +DSO_METHOD *DSO_METHOD_openssl(void) { - return (&dso_meth_dl); + return &dso_meth_dl; } /* |