aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-27 09:59:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-27 09:59:29 +0000
commit177848ed276e6b52f45ef79393be6bb9d399dc7b (patch)
tree4730021c24377e38072eba9c3849ff54dd326b6a /tests
parent656a2e93d7c8c339f18622d722d6df2482ecbdce (diff)
detect SSL library properly and display it on startup
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 42f769885..49963259d 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -757,6 +757,7 @@ sub checkcurl {
if($_ =~ /^curl/) {
$curl = $_;
$curl =~ s/^(.*)(libcurl.*)/$1/g;
+
$libcurl = $2;
if($curl =~ /mingw32/) {
# This is a windows minw32 build, we need to translate the
@@ -813,11 +814,11 @@ sub checkcurl {
# through a shell.
chomp($pwd = `cygpath -m $pwd`);
}
- elsif ($curl =~ /openssl/i) {
+ elsif ($libcurl =~ /openssl/i) {
# OpenSSL in use
$has_openssl=1;
}
- elsif ($curl =~ /gnutls/i) {
+ elsif ($libcurl =~ /gnutls/i) {
# GnuTLS in use
$has_gnutls=1;
}
@@ -924,6 +925,12 @@ sub checkcurl {
if($ftp_ipv6) {
printf("* FTP IPv6 port: %d\n", $FTP6PORT);
}
+
+ if($ssl_version) {
+ printf("* SSL library: %s\n",
+ $has_gnutls?"GnuTLS":($has_openssl?"OpenSSL":"<unknown>"));
+ }
+
print "***************************************** \n";
}