33 #include <ares_version.h>
37 static void getssl_version(
char *ptr,
long *
num)
40 #if (SSLEAY_VERSION_NUMBER >= 0x905000)
43 unsigned long ssleay_value;
45 ssleay_value=SSLeay();
47 if(ssleay_value < 0x906000) {
48 ssleay_value=SSLEAY_VERSION_NUMBER;
52 if(ssleay_value&0xff0) {
53 sub[0]=(char)((ssleay_value>>4)&0xff) +
'a' -1;
59 sprintf(ptr,
" OpenSSL/%lx.%lx.%lx%s",
60 (ssleay_value>>28)&0xf,
61 (ssleay_value>>20)&0xff,
62 (ssleay_value>>12)&0xff,
67 *num = SSLEAY_VERSION_NUMBER;
68 #if (SSLEAY_VERSION_NUMBER >= 0x900000)
69 sprintf(ptr,
" OpenSSL/%lx.%lx.%lx",
70 (SSLEAY_VERSION_NUMBER>>28)&0xff,
71 (SSLEAY_VERSION_NUMBER>>20)&0xff,
72 (SSLEAY_VERSION_NUMBER>>12)&0xf);
77 if(SSLEAY_VERSION_NUMBER&0x0f) {
78 sub[0]=(SSLEAY_VERSION_NUMBER&0x0f) +
'a' -1;
84 (SSLEAY_VERSION_NUMBER>>12)&0xff,
85 (SSLEAY_VERSION_NUMBER>>8)&0xf,
86 (SSLEAY_VERSION_NUMBER>>4)&0xf, sub);
99 ptr=strchr(version,
'\0');
104 getssl_version(ptr, &num);
105 ptr=strchr(version,
'\0');
118 sprintf(ptr,
" zlib/%s", zlibVersion());
136 static const char *protocols[] = {
137 #ifndef CURL_DISABLE_FTP
140 #ifndef CURL_DISABLE_GOPHER
143 #ifndef CURL_DISABLE_TELNET
146 #ifndef CURL_DISABLE_DICT
149 #ifndef CURL_DISABLE_LDAP
152 #ifndef CURL_DISABLE_HTTP
155 #ifndef CURL_DISABLE_FILE
160 #ifndef CURL_DISABLE_HTTP
163 #ifndef CURL_DISABLE_FTP
201 #if defined(ENABLE_64BIT) && (SIZEOF_CURL_OFF_T > 4)
216 static char ssl_buffer[80];
218 getssl_version(ssl_buffer, &num);
232 version_info.
ares = ares_version(&aresnum);
238 return &version_info;
#define CURL_VERSION_LIBZ
#define CURL_VERSION_NTLM
curl_version_info_data * curl_version_info(CURLversion stamp)
#define CURL_VERSION_DEBUG
const char * libz_version
#define LIBCURL_VERSION_NUM
#define CURL_VERSION_IPV6
char * curl_version(void)
#define CURL_VERSION_GSSNEGOTIATE
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
#define CURL_VERSION_ASYNCHDNS
#define CURL_VERSION_LARGEFILE
int sprintf(idStr &string, const char *fmt,...)
#define CURL_VERSION_KERBEROS4
#define CURL_VERSION_SPNEGO