[vlc-devel] [PATCH 2/2] chromecast: Disable CA check
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Thu Jan 18 11:25:33 CET 2018
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.
---
modules/stream_out/chromecast/chromecast_communication.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/stream_out/chromecast/chromecast_communication.cpp b/modules/stream_out/chromecast/chromecast_communication.cpp
index 53ac92038c..bd887bcab5 100644
--- a/modules/stream_out/chromecast/chromecast_communication.cpp
+++ b/modules/stream_out/chromecast/chromecast_communication.cpp
@@ -49,6 +49,7 @@ ChromecastCommunication::ChromecastCommunication( vlc_object_t* p_module, const
if (m_creds == NULL)
throw std::runtime_error( "Failed to create TLS client" );
+ m_creds->ignore_ca_check = true;
m_tls = vlc_tls_SocketOpenTLS( m_creds, targetIP, devicePort, "tcps",
NULL, NULL );
if (m_tls == NULL)
--
2.11.0
More information about the vlc-devel
mailing list