aboutsummaryrefslogtreecommitdiffstats
path: root/package/openswan/patches/120-use_dev_urandom.patch
blob: 6bbcbf16479a6f6e58a4443379bdd09141c5d646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Index: openswan-2.4.8/programs/ranbits/ranbits.c
===================================================================
--- openswan-2.4.8.orig/programs/ranbits/ranbits.c	2007-06-04 13:22:49.835279168 +0200
+++ openswan-2.4.8/programs/ranbits/ranbits.c	2007-06-04 13:22:51.648003592 +0200
@@ -29,7 +29,7 @@
 #include <openswan.h>
 
 #ifndef DEVICE
-#define	DEVICE	"/dev/random"
+#define	DEVICE	"/dev/urandom"
 #endif
 #ifndef QDEVICE
 #define	QDEVICE	"/dev/urandom"
Index: openswan-2.4.8/programs/rsasigkey/rsasigkey.c
===================================================================
--- openswan-2.4.8.orig/programs/rsasigkey/rsasigkey.c	2007-06-04 13:22:49.842278104 +0200
+++ openswan-2.4.8/programs/rsasigkey/rsasigkey.c	2007-06-04 13:22:51.649003440 +0200
@@ -31,7 +31,7 @@
 #include <gmp.h>
 
 #ifndef DEVICE
-#define	DEVICE	"/dev/random"
+#define	DEVICE	"/dev/urandom"
 #endif
 #ifndef MAXBITS
 #define	MAXBITS	20000
Index: openswan-2.4.8/programs/starter/files.h
===================================================================
--- openswan-2.4.8.orig/programs/starter/files.h	2007-06-04 13:22:49.850276888 +0200
+++ openswan-2.4.8/programs/starter/files.h	2007-06-04 13:22:51.649003440 +0200
@@ -36,7 +36,7 @@
 
 #define MY_PID_FILE     "/var/run/pluto/ipsec-starter.pid"
 
-#define DEV_RANDOM      "/dev/random"
+#define DEV_RANDOM      "/dev/urandom"
 #define DEV_URANDOM     "/dev/urandom"
 
 #define PROC_IPSECVERSION   "/proc/net/ipsec_version"