Commit 18b224c9 authored by David Fuhrmann's avatar David Fuhrmann

securetransport: add missing error checking

parent efbb9e0d
......@@ -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;
/* ... 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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment