]> git.sesse.net Git - vlc/blob - contrib/src/gnutls/gnutls-no-egd.patch
contrib: sparkle: patch project config to force arch with xcode 3
[vlc] / contrib / src / gnutls / gnutls-no-egd.patch
1 diff -ru gnutls.orig//lib/nettle/Makefile.am gnutls//lib/nettle/Makefile.am
2 --- gnutls.orig//lib/nettle/Makefile.am 2011-07-19 20:25:09.000000000 +0300
3 +++ gnutls//lib/nettle/Makefile.am      2011-07-19 20:25:39.000000000 +0300
4 @@ -35,4 +35,4 @@
5  
6  noinst_LTLIBRARIES = libcrypto.la
7  
8 -libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c egd.c egd.h
9 +libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c
10 --- gnutls/lib/nettle/Makefile.in.orig  2011-11-22 23:27:22.099568057 -0500
11 +++ gnutls/lib/nettle/Makefile.in       2011-11-22 23:27:45.711685158 -0500
12 @@ -117,8 +117,7 @@
13  CONFIG_CLEAN_VPATH_FILES =
14  LTLIBRARIES = $(noinst_LTLIBRARIES)
15  libcrypto_la_LIBADD =
16 -am_libcrypto_la_OBJECTS = pk.lo mpi.lo mac.lo cipher.lo rnd.lo init.lo \
17 -       egd.lo
18 +am_libcrypto_la_OBJECTS = pk.lo mpi.lo mac.lo cipher.lo rnd.lo init.lo
19  libcrypto_la_OBJECTS = $(am_libcrypto_la_OBJECTS)
20  AM_V_lt = $(am__v_lt_$(V))
21  am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
22 @@ -829,7 +828,7 @@
23         -I$(srcdir)/../includes -I$(builddir)/../includes \
24         -I$(srcdir)/.. $(am__append_1)
25  noinst_LTLIBRARIES = libcrypto.la
26 -libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c egd.c egd.h
27 +libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c
28  all: all-am
29  
30  .SUFFIXES:
31 @@ -883,7 +882,6 @@
32         -rm -f *.tab.c
33  
34  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cipher.Plo@am__quote@
35 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/egd.Plo@am__quote@
36  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@
37  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mac.Plo@am__quote@
38  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpi.Plo@am__quote@
39 diff -ru gnutls.orig//lib/nettle/rnd.c gnutls//lib/nettle/rnd.c
40 --- gnutls.orig//lib/nettle/rnd.c       2011-07-19 20:25:09.000000000 +0300
41 +++ gnutls//lib/nettle/rnd.c    2011-07-19 20:26:47.000000000 +0300
42 @@ -159,7 +159,7 @@
43  #ifdef HAVE_GETRUSAGE
44  #include <sys/resource.h>
45  #endif
46 -#include "egd.h"
47 +//#include "egd.h"
48  
49  #define DEVICE_READ_SIZE 16
50  #define DEVICE_READ_SIZE_MAX 32
51 @@ -288,6 +288,7 @@
52    return 0;
53  }
54  
55 +#if 0
56  static int
57  do_device_source_egd (int init)
58  {
59 @@ -342,6 +343,7 @@
60      }
61    return 0;
62  }
63 +#endif
64  
65  static int
66  do_device_source (int init)
67 @@ -359,11 +361,13 @@
68  
69        do_source = do_device_source_urandom;
70        ret = do_source (init);
71 +#if 0
72        if (ret < 0)
73          {
74            do_source = do_device_source_egd;
75            ret = do_source (init);
76          }
77 +#endif
78  
79        if (ret < 0)
80          {