[vlc-commits] chromecast: Disable CA check

Thomas Guillem git at videolan.org
Fri Feb 2 17:31:12 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jan 18 11:25:33 2018 +0100| [1c24e8b96435c1e438653c4fa017634072ca99cf] | committer: Thomas Guillem

chromecast: Disable CA check

The certificate on the chromecast is an unchecked self-generated one,
with a validity of 3 days. There is no way and no point into checking
its CA and warning the user about it.

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1c24e8b96435c1e438653c4fa017634072ca99cf
---

 modules/stream_out/chromecast/chromecast_communication.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/stream_out/chromecast/chromecast_communication.cpp b/modules/stream_out/chromecast/chromecast_communication.cpp
index e20bb19817..6e8310949e 100644
--- a/modules/stream_out/chromecast/chromecast_communication.cpp
+++ b/modules/stream_out/chromecast/chromecast_communication.cpp
@@ -49,6 +49,8 @@ ChromecastCommunication::ChromecastCommunication( vlc_object_t* p_module, const
     if (m_creds == NULL)
         throw std::runtime_error( "Failed to create TLS client" );
 
+    /* Ignore ca checks */
+    m_creds->obj.flags |= OBJECT_FLAGS_INSECURE;
     m_tls = vlc_tls_SocketOpenTLS( m_creds, targetIP, devicePort, "tcps",
                                    NULL, NULL );
     if (m_tls == NULL)



More information about the vlc-commits mailing list