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
03986f1b
Commit
03986f1b
authored
16 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
- Made the curl tool's -w option support the %{ssl_verify_result} variable
parent
bc649593
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/curl.1
+4
-0
4 additions, 0 deletions
docs/curl.1
src/writeout.c
+7
-0
7 additions, 0 deletions
src/writeout.c
with
11 additions
and
0 deletions
docs/curl.1
+
4
−
0
View file @
03986f1b
...
...
@@ -1303,6 +1303,10 @@ will show the actual URL a redirect \fIwould\fP take you to. (Added in 7.18.2)
.B ftp_entry_path
The initial path libcurl ended up in when logging on to the remote FTP
server. (Added in 7.15.4)
.TP
.B ssl_verify_result
The result of the SSL peer certificate verification that was requested. 0
means the verification was successful. (Added in 7.19.0)
.RE
If this option is used several times, the last one will be used.
...
...
This diff is collapsed.
Click to expand it.
src/writeout.c
+
7
−
0
View file @
03986f1b
...
...
@@ -63,6 +63,7 @@ typedef enum {
VAR_REDIRECT_COUNT
,
VAR_FTP_ENTRY_PATH
,
VAR_REDIRECT_URL
,
VAR_SSL_VERIFY_RESULT
,
VAR_NUM_OF_VARS
/* must be the last */
}
replaceid
;
...
...
@@ -95,6 +96,7 @@ static const struct variable replacements[]={
{
"num_redirects"
,
VAR_REDIRECT_COUNT
},
{
"ftp_entry_path"
,
VAR_FTP_ENTRY_PATH
},
{
"redirect_url"
,
VAR_REDIRECT_URL
},
{
"ssl_verify_result"
,
VAR_SSL_VERIFY_RESULT
},
{
NULL
,
VAR_NONE
}
};
...
...
@@ -241,6 +243,11 @@ void ourWriteOut(CURL *curl, const char *writeinfo)
&&
stringp
)
fputs
(
stringp
,
stream
);
break
;
case
VAR_SSL_VERIFY_RESULT
:
if
(
CURLE_OK
==
curl_easy_getinfo
(
curl
,
CURLINFO_SSL_VERIFYRESULT
,
&
longinfo
))
fprintf
(
stream
,
"%ld"
,
longinfo
);
break
;
default:
break
;
}
...
...
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