Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
9631fa74
Commit
9631fa74
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
added libidn awareness
parent
9befc682
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/version.c
+15
-1
15 additions, 1 deletion
lib/version.c
with
15 additions
and
1 deletion
lib/version.c
+
15
−
1
View file @
9631fa74
...
...
@@ -33,6 +33,10 @@
#include
<ares_version.h>
#endif
#ifdef USE_LIBIDN
#include
<stringprep.h>
#endif
#ifdef USE_SSLEAY
static
void
getssl_version
(
char
*
ptr
,
long
*
num
)
{
...
...
@@ -95,6 +99,7 @@ char *curl_version(void)
{
static
char
version
[
200
];
char
*
ptr
;
int
len
=
sizeof
(
version
);
strcpy
(
version
,
LIBCURL_NAME
"/"
LIBCURL_VERSION
);
ptr
=
strchr
(
version
,
'\0'
);
...
...
@@ -105,6 +110,7 @@ char *curl_version(void)
ptr
=
strchr
(
version
,
'\0'
);
}
#endif
len
-=
strlen
(
version
);
#ifdef HAVE_KRB4
sprintf
(
ptr
,
" krb4"
);
...
...
@@ -127,6 +133,10 @@ char *curl_version(void)
sprintf
(
ptr
,
" c-ares/%s"
,
ares_version
(
NULL
));
ptr
+=
strlen
(
ptr
);
#endif
#ifdef USE_LIBIDN
sprintf
(
ptr
,
" libidn/%s"
,
stringprep_check_version
(
NULL
));
ptr
+=
strlen
(
ptr
);
#endif
return
version
;
}
...
...
@@ -168,7 +178,7 @@ static const char *protocols[] = {
};
static
curl_version_info_data
version_info
=
{
CURLVERSION_
SECOND
,
CURLVERSION_
NOW
,
LIBCURL_VERSION
,
LIBCURL_VERSION_NUM
,
OS
,
/* as found by configure or set by hand at build-time */
...
...
@@ -200,6 +210,9 @@ static curl_version_info_data version_info = {
#endif
#if defined(ENABLE_64BIT) && (SIZEOF_CURL_OFF_T > 4)
|
CURL_VERSION_LARGEFILE
#endif
#ifdef USE_LIBIDN
|
CURL_VERSION_IDN
#endif
,
NULL
,
/* ssl_version */
...
...
@@ -208,6 +221,7 @@ static curl_version_info_data version_info = {
protocols
,
NULL
,
/* c-ares version */
0
,
/* c-ares version numerical */
NULL
,
/* libidn version */
};
curl_version_info_data
*
curl_version_info
(
CURLversion
stamp
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment