enhanced curl_version_info

This commit is contained in:
Daniel Stenberg
2002-09-26 13:03:22 +00:00
parent 9031e33b66
commit 9247daf953
6 changed files with 135 additions and 46 deletions

View File

@@ -120,7 +120,7 @@ char *curl_version(void)
/* data for curl_version_info */
static const curl_runtime_protocol_info protocols[] = {
static const char *protocols[] = {
#ifndef CURL_DISABLE_FTP
{ "ftp" },
#endif
@@ -157,12 +157,19 @@ static const curl_runtime_protocol_info protocols[] = {
static curl_version_info_data version_info = {
LIBCURL_VERSION,
LIBCURL_VERSION_NUM,
OS, /* as found by configure or set by hand at build-time */
0 /* features is 0 by default */
#ifdef ENABLE_IPV6
| CURL_VERSION_IPV6
#endif
#ifdef KRB4
| CURL_VERSION_KERBEROS4
#endif
#ifdef USE_SSLEAY
| CURL_VERSION_SSL
#endif
#ifdef HAVE_LIBZ
| CURL_VERSION_LIBZ
#endif
,
NULL, /* ssl_version */
@@ -171,7 +178,7 @@ static curl_version_info_data version_info = {
protocols
};
const curl_version_info_data *curl_version_info(void)
curl_version_info_data *curl_version_info(void)
{
#ifdef USE_SSLEAY
static char ssl_buffer[80];