From 29dbc6bd9d99dc5140bb9c2ac07c82012996a7b3 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 12 Feb 2016 22:04:07 +0100 Subject: [PATCH] [chromecast] Don't set cert file, doesn't seem very portable --- src/outputs/cast.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/outputs/cast.c b/src/outputs/cast.c index 4639661c..686a394c 100644 --- a/src/outputs/cast.c +++ b/src/outputs/cast.c @@ -1643,10 +1643,11 @@ cast_init(void) } } - // TODO Setting the cert file may not be required - if ( ((ret = gnutls_global_init()) != GNUTLS_E_SUCCESS) || - ((ret = gnutls_certificate_allocate_credentials(&tls_credentials)) != GNUTLS_E_SUCCESS) || - ((ret = gnutls_certificate_set_x509_trust_file(tls_credentials, CAFILE, GNUTLS_X509_FMT_PEM)) < 0) ) + // Setting the cert file seems not to be required + if ( ((ret = gnutls_global_init()) != GNUTLS_E_SUCCESS) + || ((ret = gnutls_certificate_allocate_credentials(&tls_credentials)) != GNUTLS_E_SUCCESS) +// || ((ret = gnutls_certificate_set_x509_trust_file(tls_credentials, CAFILE, GNUTLS_X509_FMT_PEM)) < 0) + ) { DPRINTF(E_LOG, L_CAST, "Could not initialize GNUTLS: %s\n", gnutls_strerror(ret)); return -1;