[vlc-commits] GnuTLS: allow x509 version 1 certificates for CAs (and only CAs)

Rémi Denis-Courmont git at videolan.org
Fri Jan 27 19:30:04 CET 2012


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan 27 18:04:17 2012 +0200| [93ebac271fcd9f7dd09856120440ada2a987ddb4] | committer: Jean-Baptiste Kempf

GnuTLS: allow x509 version 1 certificates for CAs (and only CAs)
(cherry picked from commit d6a7a4d7e979563efd6322bf582a4aeea61b4d56)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index cc8a56d..fdfd37b 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -580,6 +580,9 @@ static int OpenClient (vlc_tls_t *session, int fd, const char *hostname)
 #else /* WIN32 */
     gnutls_loadOSCAList (VLC_OBJECT(session), sys->x509_cred);
 #endif
+    gnutls_certificate_set_verify_flags (sys->x509_cred,
+                                         GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT);
+
     session->handshake = gnutls_HandshakeAndValidate;
     /*session->_handshake = gnutls_ContinueHandshake;*/
 



More information about the vlc-commits mailing list