[vlc-devel] commit: SSL certificates are in /etc, not in /usr/share ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon May 5 22:54:00 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon May  5 23:55:12 2008 +0300| [c20e5a73cb2926eb0b5341a8752b97150b3d9cdb]

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

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

 modules/misc/gnutls.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 1f6be91..45ed4b2 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -667,10 +667,10 @@ static int OpenClient (vlc_object_t *obj)
         free (userdir);
     }
 
-    const char *datadir = config_GetDataDir ();
+    const char *confdir = config_GetConfDir ();
     {
-        char path[strlen (datadir) + sizeof ("/ca-certificates.crt")];
-        sprintf (path, "%s/ca-certificates.crt", datadir);
+        char path[strlen (confdir) + sizeof ("/ca-certificates.crt")];
+        sprintf (path, "%s/ca-certificates.crt", confdir);
         gnutls_Addx509File (VLC_OBJECT (p_session),
                             p_sys->x509_cred, path, false);
     }




More information about the vlc-devel mailing list