diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 13:00:04 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 13:00:04 +0000 |
commit | 4aec03f2cbabc19cf31e7d6f9fdcd6c84cfa861e (patch) | |
tree | 06ba27421c30be1aa1f3c4e911e7a7c7d4ed28fc /src/htsmodules.c | |
parent | 660b569b0980fc8f71b03ed666dd02eec8388b4c (diff) |
httrack 3.42.3
Diffstat (limited to 'src/htsmodules.c')
-rw-r--r-- | src/htsmodules.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/htsmodules.c b/src/htsmodules.c index 1049d36..8f7facc 100644 --- a/src/htsmodules.c +++ b/src/htsmodules.c @@ -262,8 +262,14 @@ void htspe_init(void) { #ifdef _WIN32 handle = LoadLibraryA((char*)"ssleay32"); #else - /* We are compatible with 0.9.6/7/8 and potentially above */ - handle = dlopen("libssl.so.0.9.8", RTLD_LAZY); + /* We are compatible with 0.9.6/7/8/8b and potentially above */ + handle = dlopen("libssl.so.0.9.8g", RTLD_LAZY); /* added 8g release too (Debarshi Ray) */ + if (handle == NULL) { + handle = dlopen("libssl.so.0.9.8b", RTLD_LAZY); + } + if (handle == NULL) { + handle = dlopen("libssl.so.0.9.8", RTLD_LAZY); + } if (handle == NULL) { handle = dlopen("libssl.so.0.9.7", RTLD_LAZY); } @@ -271,12 +277,12 @@ void htspe_init(void) { handle = dlopen("libssl.so.0.9.6", RTLD_LAZY); } if (handle == NULL) { - /* Try harder */ - handle = dlopen("libssl.so", RTLD_LAZY); + /* Try harder with .0 if any */ + handle = dlopen("libssl.so.0", RTLD_LAZY); } if (handle == NULL) { - /* Try harder */ - handle = dlopen("libssl.so.0", RTLD_LAZY); + /* Try harder with devel link */ + handle = dlopen("libssl.so", RTLD_LAZY); } #endif ssl_handle = handle; |