Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
34567da2
Commit
34567da2
authored
Feb 26, 2017
by
Marvin Scholz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
securetransport: Fix compilation
parent
5cc99219
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/misc/securetransport.c
modules/misc/securetransport.c
+3
-3
No files found.
modules/misc/securetransport.c
View file @
34567da2
...
...
@@ -570,7 +570,7 @@ static void st_SessionClose (vlc_tls_t *session) {
static
vlc_tls_t
*
st_SessionOpenCommon
(
vlc_tls_creds_t
*
crd
,
vlc_tls_t
*
sock
,
bool
b_server
)
{
vlc_tls_st_t
*
sys
=
malloc
(
sizeof
(
*
s
t
));
vlc_tls_st_t
*
sys
=
malloc
(
sizeof
(
*
s
ys
));
if
(
unlikely
(
sys
==
NULL
))
return
NULL
;
...
...
@@ -643,7 +643,7 @@ static vlc_tls_t *st_ClientSessionOpen(vlc_tls_creds_t *crd, vlc_tls_t *sock,
vlc_tls_st_t
*
sys
=
(
vlc_tls_st_t
*
)
tls
;
ret
=
SSLSetPeerDomainName
(
sys
->
p_context
,
hostname
,
strlen
(
hostname
));
OSStatus
ret
=
SSLSetPeerDomainName
(
sys
->
p_context
,
hostname
,
strlen
(
hostname
));
if
(
ret
!=
noErr
)
{
msg_Err
(
crd
,
"cannot set peer domain name"
);
goto
error
;
...
...
@@ -726,7 +726,7 @@ static vlc_tls_t *st_ServerSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *sock,
vlc_tls_st_t
*
sys
=
(
vlc_tls_st_t
*
)
tls
;
vlc_tls_creds_sys_t
*
p_cred_sys
=
crd
->
sys
;
ret
=
SSLSetCertificate
(
sys
->
p_context
,
p_cred_sys
->
server_cert_chain
);
OSStatus
ret
=
SSLSetCertificate
(
sys
->
p_context
,
p_cred_sys
->
server_cert_chain
);
if
(
ret
!=
noErr
)
{
msg_Err
(
crd
,
"cannot set server certificate"
);
goto
error
;
...
...
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