Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
91854175
Commit
91854175
authored
Oct 21, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
parent
ef99cea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
46 deletions
+0
-46
modules/misc/gnutls.c
modules/misc/gnutls.c
+0
-46
No files found.
modules/misc/gnutls.c
View file @
91854175
...
@@ -255,52 +255,6 @@ gnutls_ContinueHandshake( tls_session_t *p_session)
...
@@ -255,52 +255,6 @@ gnutls_ContinueHandshake( tls_session_t *p_session)
return
0
;
return
0
;
}
}
static
int
gnutls_VerifyHostname
(
vlc_object_t
*
p_this
,
gnutls_session
session
,
const
char
*
psz_hostname
)
{
const
gnutls_datum
*
p_data
;
gnutls_x509_crt
cert
;
unsigned
status
;
int
val
;
/* certificate (host)name verification */
p_data
=
gnutls_certificate_get_peers
(
session
,
&
status
);
if
(
p_data
==
NULL
)
{
msg_Err
(
p_this
,
"TLS peer certificate not available"
);
return
-
1
;
}
val
=
gnutls_x509_crt_init
(
&
cert
);
if
(
val
)
{
msg_Err
(
p_this
,
"x509 fatal error: %s"
,
gnutls_strerror
(
val
)
);
return
-
1
;
}
val
=
gnutls_x509_crt_import
(
cert
,
p_data
,
GNUTLS_X509_FMT_DER
);
if
(
val
)
{
msg_Err
(
p_this
,
"x509 certificate import error: %s"
,
gnutls_strerror
(
val
)
);
gnutls_x509_crt_deinit
(
cert
);
return
-
1
;
}
if
(
gnutls_x509_crt_check_hostname
(
cert
,
psz_hostname
)
==
0
)
{
msg_Err
(
p_this
,
"x509 certificate does not match
\"
%s
\"
"
,
psz_hostname
);
gnutls_x509_crt_deinit
(
cert
);
return
-
1
;
}
gnutls_x509_crt_deinit
(
cert
);
msg_Dbg
(
p_this
,
"x509 hostname matches %s"
,
psz_hostname
);
return
0
;
}
typedef
struct
typedef
struct
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment