]> granicus.if.org Git - curl/commitdiff
show openssl 0.9.6a properly
authorDaniel Stenberg <daniel@haxx.se>
Fri, 6 Apr 2001 08:48:42 +0000 (08:48 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Apr 2001 08:48:42 +0000 (08:48 +0000)
lib/version.c

index cfb4aa333bbf54cc7c2737da9291529d7d32c2c7..85a15812a2f572be23ce1a841b05e35ddc2da279 100644 (file)
@@ -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,
@@ -57,6 +74,7 @@ char *curl_version(void)
             (SSLEAY_VERSION_NUMBER>>8)&0xf,
             (SSLEAY_VERSION_NUMBER>>4)&0xf, sub);
   }
+#endif
 #endif
   ptr=strchr(ptr, '\0');
 #endif