Commit c20e5a73 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

SSL certificates are in /etc, not in /usr/share

parent 62ba5767
...@@ -667,10 +667,10 @@ static int OpenClient (vlc_object_t *obj) ...@@ -667,10 +667,10 @@ static int OpenClient (vlc_object_t *obj)
free (userdir); free (userdir);
} }
const char *datadir = config_GetDataDir (); const char *confdir = config_GetConfDir ();
{ {
char path[strlen (datadir) + sizeof ("/ca-certificates.crt")]; char path[strlen (confdir) + sizeof ("/ca-certificates.crt")];
sprintf (path, "%s/ca-certificates.crt", datadir); sprintf (path, "%s/ca-certificates.crt", confdir);
gnutls_Addx509File (VLC_OBJECT (p_session), gnutls_Addx509File (VLC_OBJECT (p_session),
p_sys->x509_cred, path, false); p_sys->x509_cred, path, false);
} }
......
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