[chromecast] Don't set cert file, doesn't seem very portable
This commit is contained in:
parent
a824f73779
commit
29dbc6bd9d
|
@ -1643,10 +1643,11 @@ cast_init(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO Setting the cert file may not be required
|
// Setting the cert file seems not to be required
|
||||||
if ( ((ret = gnutls_global_init()) != GNUTLS_E_SUCCESS) ||
|
if ( ((ret = gnutls_global_init()) != GNUTLS_E_SUCCESS)
|
||||||
((ret = gnutls_certificate_allocate_credentials(&tls_credentials)) != 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) )
|
// || ((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));
|
DPRINTF(E_LOG, L_CAST, "Could not initialize GNUTLS: %s\n", gnutls_strerror(ret));
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue