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
GSoC
GSoC2018
macOS
vlc
Commits
18b224c9
Commit
18b224c9
authored
Jan 05, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
securetransport: add missing error checking
parent
efbb9e0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
modules/misc/securetransport.c
modules/misc/securetransport.c
+10
-2
No files found.
modules/misc/securetransport.c
View file @
18b224c9
...
...
@@ -550,10 +550,18 @@ static int st_ClientSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *session,
certificates */
/* this has effect only on iOS 5 and OSX 10.8 or later ... */
SSLSetSessionOption
(
sys
->
p_context
,
kSSLSessionOptionBreakOnServerAuth
,
true
);
ret
=
SSLSetSessionOption
(
sys
->
p_context
,
kSSLSessionOptionBreakOnServerAuth
,
true
);
if
(
ret
!=
noErr
)
{
msg_Err
(
session
,
"cannot set session option"
);
goto
error
;
}
#if !TARGET_OS_IPHONE
/* ... thus calling this for earlier osx versions, which is not available on iOS in turn */
SSLSetEnableCertVerify
(
sys
->
p_context
,
false
);
ret
=
SSLSetEnableCertVerify
(
sys
->
p_context
,
false
);
if
(
ret
!=
noErr
)
{
msg_Err
(
session
,
"error setting enable cert verify"
);
goto
error
;
}
#endif
return
VLC_SUCCESS
;
...
...
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