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
dcfb10fb
Commit
dcfb10fb
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Patrick Bihan-Faou's verifyhost addition
parent
0553ab81
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/curl/curl.h
+5
-0
5 additions, 0 deletions
include/curl/curl.h
src/main.c
+3
-0
3 additions, 0 deletions
src/main.c
with
8 additions
and
0 deletions
include/curl/curl.h
+
5
−
0
View file @
dcfb10fb
...
...
@@ -448,6 +448,11 @@ typedef enum {
*/
CINIT
(
HTTPGET
,
LONG
,
80
),
/* Set if we should verify the Common name from the peer certificate in ssl
* handshake, set 1 to check existence, 2 to ensure that it matches the
* provided hostname. */
CINIT
(
SSL_VERIFYHOST
,
LONG
,
81
),
CURLOPT_LASTENTRY
/* the last unusued */
}
CURLoption
;
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
3
−
0
View file @
dcfb10fb
...
...
@@ -1881,7 +1881,10 @@ operate(struct Configurable *config, int argc, char *argv[])
/* available from libcurl 7.5: */
curl_easy_setopt
(
curl
,
CURLOPT_CAINFO
,
config
->
cacert
);
curl_easy_setopt
(
curl
,
CURLOPT_SSL_VERIFYPEER
,
TRUE
);
curl_easy_setopt
(
curl
,
CURLOPT_SSL_VERIFYHOST
,
2
);
}
else
curl_easy_setopt
(
curl
,
CURLOPT_SSL_VERIFYHOST
,
1
);
if
(
config
->
conf
&
(
CONF_NOBODY
|
CONF_USEREMOTETIME
))
{
/* no body or use remote time */
...
...
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