Commit 88efd1e2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: update GnuTLS to 3.2.17

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 31dc0fd419cf54c4dd80947930159bcce660bf6d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3e546fff
3205fcfe3344f777f5c8d2162de2ac338cfdfabaa55d7b829e59160cfec434651f704a9bac355f5003d1841448c4b0303dc6e06a935801aa922504b297bdd093 gnutls-3.1.25.tar.xz 275a13bb705539ae402269c9b67aa7f78bf57892f8b24727a2529de6024454fcbc4fd1ed9922120b33c30dad964a1f473f5222243b35eda7010538e7e3b61bef gnutls-3.2.17.tar.xz
--- gnutls-3.1.14/configure.ac.orig 2013-09-17 18:17:09.840217108 +0200
+++ gnutls-3.1.14/configure.ac 2013-09-17 18:19:36.609535012 +0200
@@ -26,7 +26,7 @@
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
-AM_INIT_AUTOMAKE([1.12.2 no-dist-gzip dist-xz dist-lzip -Wall -Wno-override])
+AM_INIT_AUTOMAKE([1.11.1 no-dist-gzip dist-xz -Wall -Wno-override])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_HEADERS([config.h])
diff -ru gnutls.orig/lib/nettle/rnd.c gnutls/lib/nettle/rnd.c --- gnutls-3.2.11/lib/nettle/rnd.c.orig 2014-08-26 02:08:42.243632503 +0200
--- gnutls-3.1.10/lib/nettle/Makefile.am.orig 2013-03-25 14:41:50.265377296 +0100 +++ gnutls-3.2.11/lib/nettle/rnd.c 2014-08-26 02:08:41.123615625 +0200
+++ gnutls-3.1.10/lib/nettle/Makefile.am 2013-03-25 14:50:17.436084975 +0100 @@ -216,7 +216,7 @@
@@ -33,7 +33,7 @@
noinst_LTLIBRARIES = libcrypto.la
-libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c egd.c egd.h \
+libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c \
multi.c wmnaf.c ecc_free.c ecc.h ecc_make_key.c ecc_shared_secret.c \
ecc_map.c ecc_mulmod.c ecc_mulmod_cached.c \
ecc_points.c ecc_projective_dbl_point_3.c ecc_projective_isneutral.c \
--- gnutls-3.1.10/lib/nettle/Makefile.in.orig 2013-03-25 14:41:50.268710655 +0100
+++ gnutls-3.1.10/lib/nettle/Makefile.in 2013-03-25 14:51:42.180123726 +0100
@@ -219,7 +219,7 @@
LTLIBRARIES = $(noinst_LTLIBRARIES)
libcrypto_la_LIBADD =
am_libcrypto_la_OBJECTS = pk.lo mpi.lo mac.lo cipher.lo rnd.lo init.lo \
- egd.lo multi.lo wmnaf.lo ecc_free.lo ecc_make_key.lo \
+ multi.lo wmnaf.lo ecc_free.lo ecc_make_key.lo \
ecc_shared_secret.lo ecc_map.lo ecc_mulmod.lo \
ecc_mulmod_cached.lo ecc_points.lo \
ecc_projective_dbl_point_3.lo ecc_projective_isneutral.lo \
@@ -1536,7 +1536,7 @@
-I$(srcdir)/../includes -I$(builddir)/../includes \
-I$(builddir)/../../gl -I$(srcdir)/.. $(am__append_1)
noinst_LTLIBRARIES = libcrypto.la
-libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c egd.c egd.h \
+libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c \
multi.c wmnaf.c ecc_free.c ecc.h ecc_make_key.c ecc_shared_secret.c \
ecc_map.c ecc_mulmod.c ecc_mulmod_cached.c \
ecc_points.c ecc_projective_dbl_point_3.c ecc_projective_isneutral.c \
@@ -1610,7 +1610,6 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecc_shared_secret.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecc_sign_hash.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecc_verify_hash.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/egd.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mac.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpi.Plo@am__quote@
--- gnutls-3.1.10/lib/nettle/rnd.c.orig 2013-03-21 21:42:28.000000000 +0100
+++ gnutls-3.1.10/lib/nettle/rnd.c 2013-03-25 14:52:50.004027534 +0100
@@ -205,7 +205,7 @@
#include <sys/time.h> #include <sys/time.h>
#include <fcntl.h> #include <fcntl.h>
#include <locks.h> #include <locks.h>
...@@ -49,33 +9,48 @@ diff -ru gnutls.orig/lib/nettle/rnd.c gnutls/lib/nettle/rnd.c ...@@ -49,33 +9,48 @@ diff -ru gnutls.orig/lib/nettle/rnd.c gnutls/lib/nettle/rnd.c
#define DEVICE_READ_SIZE 16 #define DEVICE_READ_SIZE 16
#define DEVICE_READ_SIZE_MAX 32 #define DEVICE_READ_SIZE_MAX 32
@@ -276,6 +276,7 @@ @@ -286,6 +286,7 @@
return 0; return 0;
} }
+#if 0 +#if 0
static int static int do_device_source_egd(int init, struct event_st *event)
do_device_source_egd (int init)
{ {
@@ -329,6 +330,7 @@ unsigned int read_size = DEVICE_READ_SIZE;
@@ -342,6 +343,7 @@
} }
return 0; return 0;
} }
+#endif +#endif
static int static int do_device_source(int init, struct event_st *event)
do_device_source (int init) {
@@ -346,11 +348,13 @@ @@ -357,10 +359,12 @@
do_source = do_device_source_urandom; do_source = do_device_source_urandom;
ret = do_source (init); ret = do_source(init, event);
+#if 0 +#if 0
if (ret < 0) if (ret < 0) {
{
do_source = do_device_source_egd; do_source = do_device_source_egd;
ret = do_source (init); ret = do_source(init, event);
} }
+#endif +#endif
if (ret < 0) if (ret < 0) {
{ gnutls_assert();
@@ -450,7 +454,6 @@
if (level == GNUTLS_RND_NONCE)
_rnd_get_event(&event);
}
-#endif
/* update state only when having a non-nonce or if nonce
* and nsecs%4096 == 0, i.e., one out of 4096 times called .
@@ -494,6 +497,7 @@
RND_UNLOCK;
return;
}
+#endif
int crypto_rnd_prio = INT_MAX;
...@@ -28,16 +28,6 @@ ...@@ -28,16 +28,6 @@
AC_SUBST([INTL_MACOSX_LIBS]) AC_SUBST([INTL_MACOSX_LIBS])
]) ])
--- a/lib/gnutls.pc.in.orig 2014-06-25 17:42:26.000000000 -0400
+++ b/lib/gnutls.pc.in 2014-06-25 17:42:35.000000000 -0400
@@ -19,6 +19,6 @@
Version: @VERSION@
Libs: -L${libdir} -lgnutls
-Libs.private: @LTLIBNETTLE@ @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @LIB_CLOCK_GETTIME@ @GMP_LIBS@
+Libs.private: @LTLIBNETTLE@ @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @LIB_CLOCK_GETTIME@ @GMP_LIBS@ @INTL_MACOSX_LIBS@
@GNUTLS_REQUIRES_PRIVATE@
Cflags: -I${includedir}
--- a/libdane/gnutls-dane.pc.in.orig 2014-06-25 17:57:29.000000000 -0400 --- a/libdane/gnutls-dane.pc.in.orig 2014-06-25 17:57:29.000000000 -0400
+++ b/libdane/gnutls-dane.pc.in 2014-06-25 17:57:39.000000000 -0400 +++ b/libdane/gnutls-dane.pc.in 2014-06-25 17:57:39.000000000 -0400
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
...@@ -49,3 +39,11 @@ ...@@ -49,3 +39,11 @@
Libs.private: @UNBOUND_LIBS@ Libs.private: @UNBOUND_LIBS@
Requires.private: gnutls Requires.private: gnutls
Cflags: -I${includedir} Cflags: -I${includedir}
--- gnutls/lib/gnutls.pc.in.orig 2014-08-26 00:12:38.680157601 +0200
+++ gnutls/lib/gnutls.pc.in 2014-08-26 00:13:14.807453832 +0200
@@ -20,4 +20,4 @@
Version: @VERSION@
@GNUTLS_REQUIRES_PRIVATE@
Cflags: -I${includedir}
-Libs: -L${libdir} -lgnutls @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@
+Libs: -L${libdir} -lgnutls @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ @INTL_MACOSX_LIBS@
...@@ -15,14 +15,3 @@ ...@@ -15,14 +15,3 @@
# endif # endif
+#endif +#endif
#endif /* !HAVE_DECL_GAI_STRERROR */ #endif /* !HAVE_DECL_GAI_STRERROR */
--- gnutls-3.1.14/lib/gnutls.pc.in.orig 2013-09-17 18:14:16.270374773 +0200
+++ gnutls-3.1.14/lib/gnutls.pc.in 2013-09-17 18:16:10.232464936 +0200
@@ -18,7 +18,7 @@
Description: Transport Security Layer implementation for the GNU system
URL: http://www.gnutls.org/
Version: @VERSION@
-Libs: -L${libdir} -lgnutls
+Libs: -L${libdir} -lgnutls -lws2_32 -lcrypt32 @LTLIBINTL@
Libs.private: @LTLIBNETTLE@ @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @LIB_CLOCK_GETTIME@ @GMP_LIBS@
@GNUTLS_REQUIRES_PRIVATE@
Cflags: -I${includedir}
# GnuTLS # GnuTLS
GNUTLS_VERSION := 3.1.25 GNUTLS_VERSION := 3.2.17
GNUTLS_URL := ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/gnutls-$(GNUTLS_VERSION).tar.xz GNUTLS_URL := ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/gnutls-$(GNUTLS_VERSION).tar.xz
ifdef BUILD_NETWORK ifdef BUILD_NETWORK
ifndef HAVE_DARWIN_OS ifndef HAVE_DARWIN_OS
...@@ -27,7 +27,6 @@ ifdef HAVE_ANDROID ...@@ -27,7 +27,6 @@ ifdef HAVE_ANDROID
endif endif
$(APPLY) $(SRC)/gnutls/gnutls-no-egd.patch $(APPLY) $(SRC)/gnutls/gnutls-no-egd.patch
$(APPLY) $(SRC)/gnutls/read-file-limits.h.patch $(APPLY) $(SRC)/gnutls/read-file-limits.h.patch
$(APPLY) $(SRC)/gnutls/downgrade-automake-requirement.patch
$(APPLY) $(SRC)/gnutls/mac-keychain-lookup.patch $(APPLY) $(SRC)/gnutls/mac-keychain-lookup.patch
$(APPLY) $(SRC)/gnutls/gnutls-pkgconfig-osx.patch $(APPLY) $(SRC)/gnutls/gnutls-pkgconfig-osx.patch
$(call pkg_static,"lib/gnutls.pc.in") $(call pkg_static,"lib/gnutls.pc.in")
......
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