2007-06-04 19:25:53 +08:00
|
|
|
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
|
2006-09-16 23:40:22 +08:00
|
|
|
@@ -29,7 +29,7 @@
|
|
|
|
#include <openswan.h>
|
|
|
|
|
|
|
|
#ifndef DEVICE
|
|
|
|
-#define DEVICE "/dev/random"
|
|
|
|
+#define DEVICE "/dev/urandom"
|
|
|
|
#endif
|
|
|
|
#ifndef QDEVICE
|
|
|
|
#define QDEVICE "/dev/urandom"
|
2007-06-04 19:25:53 +08:00
|
|
|
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
|
2006-09-16 23:40:22 +08:00
|
|
|
@@ -31,7 +31,7 @@
|
|
|
|
#include <gmp.h>
|
|
|
|
|
|
|
|
#ifndef DEVICE
|
|
|
|
-#define DEVICE "/dev/random"
|
|
|
|
+#define DEVICE "/dev/urandom"
|
|
|
|
#endif
|
|
|
|
#ifndef MAXBITS
|
|
|
|
#define MAXBITS 20000
|
2007-06-04 19:25:53 +08:00
|
|
|
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
|
2006-09-16 23:40:22 +08:00
|
|
|
@@ -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"
|