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
0af1a9d2
Commit
0af1a9d2
authored
12 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
hostcheck: only build for the actual users
and make local function static
parent
1394cad3
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
lib/hostcheck.c
+7
-2
7 additions, 2 deletions
lib/hostcheck.c
lib/hostcheck.h
+0
-1
0 additions, 1 deletion
lib/hostcheck.h
with
7 additions
and
3 deletions
lib/hostcheck.c
+
7
−
2
View file @
0af1a9d2
...
...
@@ -22,6 +22,9 @@
#include
"setup.h"
#if defined(USE_SSLEAY) || defined(USE_AXTLS)
/* these two backends use functions from this file */
#include
"hostcheck.h"
#include
"rawstr.h"
...
...
@@ -34,7 +37,7 @@
* http://tools.ietf.org/html/rfc6125#section-6.4.3
*/
int
Curl_
hostmatch
(
const
char
*
hostname
,
const
char
*
pattern
)
static
int
hostmatch
(
const
char
*
hostname
,
const
char
*
pattern
)
{
const
char
*
pattern_label_end
,
*
pattern_wildcard
,
*
hostname_label_end
;
int
wildcard_enabled
;
...
...
@@ -85,7 +88,9 @@ int Curl_cert_hostcheck(const char *match_pattern, const char *hostname)
if
(
Curl_raw_equal
(
hostname
,
match_pattern
))
/* trivial case */
return
1
;
if
(
Curl_
hostmatch
(
hostname
,
match_pattern
)
==
CURL_HOST_MATCH
)
if
(
hostmatch
(
hostname
,
match_pattern
)
==
CURL_HOST_MATCH
)
return
1
;
return
0
;
}
#endif
/* SSLEAY or AXTLS */
This diff is collapsed.
Click to expand it.
lib/hostcheck.h
+
0
−
1
View file @
0af1a9d2
...
...
@@ -26,7 +26,6 @@
#define CURL_HOST_NOMATCH 0
#define CURL_HOST_MATCH 1
int
Curl_hostmatch
(
const
char
*
hostname
,
const
char
*
pattern
);
int
Curl_cert_hostcheck
(
const
char
*
match_pattern
,
const
char
*
hostname
);
#endif
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