codec: videotoolbox: check if H264 needs restart
[vlc.git] / contrib / src / gnutls / gnutls-no-egd.patch
blob69eb22f83bfdffa54e229e18187b82a7c495b240
1 --- gnutls-3.2.11/lib/nettle/rnd.c.orig 2014-08-26 02:08:42.243632503 +0200
2 +++ gnutls-3.2.11/lib/nettle/rnd.c 2014-08-26 02:08:41.123615625 +0200
3 @@ -216,7 +216,7 @@
4 #include <sys/time.h>
5 #include <fcntl.h>
6 #include <locks.h>
7 -#include "egd.h"
8 +//#include "egd.h"
10 #define DEVICE_READ_SIZE 16
11 #define DEVICE_READ_SIZE_MAX 32
12 @@ -286,6 +286,7 @@
13 return 0;
16 +#if 0
17 static int do_device_source_egd(int init, struct event_st *event)
19 unsigned int read_size = DEVICE_READ_SIZE;
20 @@ -342,6 +343,7 @@
22 return 0;
24 +#endif
26 static int do_device_source(int init, struct event_st *event)
28 @@ -357,10 +359,12 @@
30 do_source = do_device_source_urandom;
31 ret = do_source(init, event);
32 +#if 0
33 if (ret < 0) {
34 do_source = do_device_source_egd;
35 ret = do_source(init, event);
37 +#endif
39 if (ret < 0) {
40 gnutls_assert();
41 @@ -450,7 +454,6 @@
42 if (level == GNUTLS_RND_NONCE)
43 _rnd_get_event(&event);
45 -#endif
47 /* update state only when having a non-nonce or if nonce
48 * and nsecs%4096 == 0, i.e., one out of 4096 times called .
49 @@ -494,6 +497,7 @@
50 RND_UNLOCK;
51 return;
53 +#endif
55 int crypto_rnd_prio = INT_MAX;