Commit 7d6cc627 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Backport GNutls update for security reasons.

parent a2d7afbb
......@@ -1611,12 +1611,13 @@ gnutls-$(GNUTLS_VERSION).tar.bz2:
gnutls: gnutls-$(GNUTLS_VERSION).tar.bz2
$(EXTRACT_BZ2)
patch -p0 < Patches/gnutls-win32.patch
(cd $@; cd lgl; ln -sf alloca_.h alloca.h)
.gnutls: gnutls .gcrypt .gpg-error
ifdef HAVE_WIN32
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" --target=i586-mingw32msvc --program-prefix="" && cd gl && make && cd ../lib &&make && make install && cd ../includes && make install)
(cd $<; autoconf && $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" --target=i586-mingw32msvc && cd gl && make && cd ../lgl && make && cd ../lib &&make && make install && cd ../includes && make install)
else
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" && cd gl && make && cd ../lib &&make && make install && cd ../includes && make install)
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" && cd gl && make && cd ../lgl && make && cd ../lib &&make && make install && cd ../includes && make install)
endif
$(INSTALL_NAME)
touch $@
......
--- gnutls-1.4.0/lib/gnutls_buffers.c 2006-03-08 11:44:59.000000000 +0100
+++ gnutls/lib/gnutls_buffers.c 2006-07-12 14:29:06.000000000 +0200
@@ -275,9 +275,12 @@
{
_gnutls_read_log ("READ: %d returned from %d, errno=%d\n", i,
fd, errno);
-
+#ifdef _WIN32
+ if (WSAGetLastError() == WSAEWOULDBLOCK) {
+#else
if (errno == EAGAIN || errno == EINTR)
{
+#endif
if (sizeOfPtr - left > 0)
{
@@ -707,8 +710,12 @@
--- gnutls-1.6.1/configure.in 2006-11-26 11:19:05.000000000 +0100
+++ gnutls/configure.in 2007-01-20 01:52:24.000000000 +0100
@@ -187,9 +187,6 @@
fi
fi
if (i == -1)
{
+#ifdef _WIN32
+ if (WSAGetLastError() == WSAEWOULDBLOCK) {
+#else
if (errno == EAGAIN || errno == EINTR)
{
+#endif
session->internals.record_send_buffer_prev_size += n - left;
-# Needs to be called outside of 'if' clause.
-AM_CONDITIONAL(HAVE_LD_OUTPUT_DEF, test "$output_def" = "yes")
-
AC_MSG_RESULT([***
*** Detecting C library capabilities...
])
@@ -583,6 +572,11 @@
LIBGNUTLS_EXTRA_CFLAGS="$LIBOPENCDK_CFLAGS -I${includedir}"
AC_SUBST(LIBGNUTLS_EXTRA_LIBS)
AC_SUBST(LIBGNUTLS_EXTRA_CFLAGS)
+
+
+# Needs to be called outside of 'if' clause.
+AM_CONDITIONAL(HAVE_LD_OUTPUT_DEF, test "$output_def" = "yes" -a "${enable_shared}" != "no")
+
export ac_full
retval =
CFLAGS="${CFLAGS} ${LIBGCRYPT_CFLAGS}"
......@@ -123,10 +123,10 @@ PNG_URL=$(SF)/libpng/libpng-$(PNG_VERSION).tar.bz2
GPGERROR_VERSION=1.3
GPGERROR_URL=http://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-$(GPGERROR_VERSION).tar.gz
#GPGERROR_URL=$(VIDEOLAN)/testing/contrib/libgpg-error-$(GPGERROR_VERSION).tar.gz
GCRYPT_VERSION=1.2.2
GCRYPT_VERSION=1.2.3
GCRYPT_URL=http://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-$(GCRYPT_VERSION).tar.bz2
#GCRYPT_URL=$(VIDEOLAN)/testing/contrib/libgcrypt-$(GCRYPT_VERSION).tar.bz2
GNUTLS_VERSION=1.4.0
GNUTLS_VERSION=1.6.1
GNUTLS_URL=http://ftp.gnupg.org/gcrypt/gnutls/gnutls-$(GNUTLS_VERSION).tar.bz2
DAAP_VERSION=0.4.0
DAAP_URL=http://craz.net/programs/itunes/files/libopendaap-$(DAAP_VERSION).tar.bz2
......
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