Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-0.9.git;a=commitdiff;h=b498b179dfda0e5f0b08b7b32af6d5d4c25a528b

commit b498b179dfda0e5f0b08b7b32af6d5d4c25a528b
Author: Miklos Vajna <[email protected]>
Date:   Thu Mar 12 13:19:06 2009 +0100

gnutls-2.2.5-3solaria1-i686

- add CVE-2008-4989.patch
- closes #3449
(cherry picked from commit 4831fc08acf4b135452b12fb66302cc10fcf3908)

diff --git a/source/lib/gnutls/CVE-2008-4989.patch 
b/source/lib/gnutls/CVE-2008-4989.patch
new file mode 100644
index 0000000..fc4d80f
--- /dev/null
+++ b/source/lib/gnutls/CVE-2008-4989.patch
@@ -0,0 +1,38 @@
+--- gnutls-2.4.1/lib/x509/verify.c.orig        2008-07-01 06:45:51.000000000 
+1000
++++ gnutls-2.4.1/lib/x509/verify.c     2008-11-07 16:48:08.000000000 +1100
+@@ -376,6 +376,17 @@
+   int i = 0, ret;
+   unsigned int status = 0, output;
+
++  /* Check if the last certificate in the path is self signed.
++   * In that case ignore it (a certificate is trusted only if it
++   * leads to a trusted party by us, not the server's).
++   */
++  if (gnutls_x509_crt_check_issuer (certificate_list[clist_size - 1],
++                                   certificate_list[clist_size - 1]) > 0
++      && clist_size > 0)
++    {
++      clist_size--;
++    }
++
+   /* Verify the last certificate in the certificate path
+    * against the trusted CA certificate list.
+    *
+@@ -414,17 +425,6 @@
+     }
+ #endif
+
+-  /* Check if the last certificate in the path is self signed.
+-   * In that case ignore it (a certificate is trusted only if it
+-   * leads to a trusted party by us, not the server's).
+-   */
+-  if (gnutls_x509_crt_check_issuer (certificate_list[clist_size - 1],
+-                                  certificate_list[clist_size - 1]) > 0
+-      && clist_size > 0)
+-    {
+-      clist_size--;
+-    }
+-
+   /* Verify the certificate path (chain)
+    */
+   for (i = clist_size - 1; i > 0; i--)
diff --git a/source/lib/gnutls/FrugalBuild b/source/lib/gnutls/FrugalBuild
index 8ceec81..d9919e4 100644
--- a/source/lib/gnutls/FrugalBuild
+++ b/source/lib/gnutls/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=gnutls
pkgver=2.2.5
-pkgrel=2
+pkgrel=3solaria1
pkgdesc="A library which provides a secure layer over a reliable transport 
layer"
url="http://www.gnu.org/software/gnutls/";
groups=('lib')
@@ -14,12 +14,13 @@ makedepends=('gtk-doc')
options=('scriptlet')
up2date="lynx -dump ftp://ftp.gnutls.org/pub/gnutls/|grep tar.bz2$ | grep -v rc 
| sed -n 's/.*-\(.*\)\.t.*/\1/;$ p'"
source=(http://josefsson.org/gnutls/releases/$pkgname-$pkgver.tar.bz2 \
-       CVE-2008-2377.patch)
+       CVE-2008-2377.patch CVE-2008-4989.patch)
Finclude texinfo
-signatures=($source.sig '')
+signatures=($source.sig '' '')

build()
{
+       Fpatch CVE-2008-4989.patch
Fmake --enable-gtk-doc
make check || return 1
Fmakeinstall
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to