Le mar 01 aoû 06 à 17:53 +0300, Rémi Denis-Courmont a écrit : > Le lundi 1 mai 2006 11:54, Rémi Denis-Courmont a écrit : > > Not exactly. It looks for any files in ?~/.vlc/ssl/certs? and then > > tries to load @datadir@/vlc/ca-certificates.crt, which should > > be ?/usr/share/vlc/ca-certificates.crt? in the Debian package. > > Would it be OK for the Debian package to write a symbolic link > from /usr/share/vlc/ca-certificates.crt > to /etc/ssl/certs/ca-certificates.crt and have a > Suggests: ca-certificate? > > That would avoid the mandatory dependency on ca-certificates, while > still providing good integration with Debian.
Having a symlink pointing in the void is not so clean. We can also patch the code to look at /etc/ssl/certs/ca-certificates.crt like it's done in the nightly build packages of nightlies.videolan.org. The patch is here http://trac.videolan.org/pkg-multimedia/browser/upstream/vlc/debian/patches/020_certificates_paths.diff and attached for completness. -- Xtophe
Index: vlc-trunk/modules/misc/gnutls.c
===================================================================
--- vlc-trunk/modules/misc/gnutls.c (revision 15766)
+++ vlc-trunk/modules/misc/gnutls.c (working copy)
@@ -614,6 +614,10 @@
p_sys->x509_cred, psz_path, VLC_FALSE );
free( psz_path );
}
+ gnutls_Addx509File( (vlc_object_t *)p_session,
+ p_sys->x509_cred,
+ "/etc/ssl/certs/ca-certificates.crt",VLC_FALSE );
+
p_session->pf_handshake2 = gnutls_HandshakeAndValidate;
}
else
signature.asc
Description: Digital signature

