aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-06 08:48:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-06 08:48:42 +0000
commit88bb054e1db2884cfdc50eff6218bac0cf61f0ca (patch)
tree5d794cd257db752a594d77d3553ea0f027fed229 /lib
parentb054fbaebd19f5c7007a8d33d8e489ad342230a7 (diff)
show openssl 0.9.6a properly
Diffstat (limited to 'lib')
-rw-r--r--lib/version.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/version.c b/lib/version.c
index cfb4aa333..85a15812a 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -38,6 +38,23 @@ char *curl_version(void)
#ifdef USE_SSLEAY
+#if (SSLEAY_VERSION_NUMBER >= 0x906000)
+ {
+ char sub[2];
+ if(SSLEAY_VERSION_NUMBER&0xff0) {
+ sub[0]=((SSLEAY_VERSION_NUMBER>>4)&0xff) + 'a' -1;
+ }
+ else
+ sub[0]=0;
+
+ sprintf(ptr, " (OpenSSL %lx.%lx.%lx%s)",
+ (SSLEAY_VERSION_NUMBER>>28)&0xf,
+ (SSLEAY_VERSION_NUMBER>>20)&0xff,
+ (SSLEAY_VERSION_NUMBER>>12)&0xff,
+ sub);
+ }
+
+#else
#if (SSLEAY_VERSION_NUMBER >= 0x900000)
sprintf(ptr, " (SSL %lx.%lx.%lx)",
(SSLEAY_VERSION_NUMBER>>28)&0xff,
@@ -58,6 +75,7 @@ char *curl_version(void)
(SSLEAY_VERSION_NUMBER>>4)&0xf, sub);
}
#endif
+#endif
ptr=strchr(ptr, '\0');
#endif