Whilst porting openssl to an embedded system, we're having difficulty
because DEVRANDOM and DEVRANDOM_EGD are defined. Looking at e_os.h, they
get defined to some comma delimited strings if they're not defined. What
I'd like to do is apply a patch (see below) to stop those being defined.
Is this right way to do this? Would you accept this patch? More files
may need to be patched to complete the port but I wanted to make sure
I'm on the right lines.

===== e_os.h 1.1 vs edited =====
--- 1.1/e_os.h  Tue May 23 15:52:33 2006
+++ edited/e_os.h       Tue May 23 15:47:00 2006
@@ -76,16 +76,20 @@
 #define REF_PRINT(a,b)
fprintf(stderr,"%08X:%4d:%s\n",(int)b,b->references,a)
 #endif
 
-#ifndef DEVRANDOM
+#ifndef NO_DEVRANDOM
+# ifndef DEVRANDOM
 /* set this to a comma-separated list of 'random' device files to try
out.
  * My default, we will try to read at least one of these files */
-#define DEVRANDOM "/dev/urandom","/dev/random","/dev/srandom"
+# define DEVRANDOM "/dev/urandom","/dev/random","/dev/srandom"
+# endif
 #endif
-#ifndef DEVRANDOM_EGD
+#ifndef NO_DEVRANDOM_EGD
+# ifndef DEVRANDOM_EGD
 /* set this to a comma-seperated list of 'egd' sockets to try out.
These
  * sockets will be tried in the order listed in case accessing the
device files
  * listed in DEVRANDOM did not return enough entropy. */
-#define DEVRANDOM_EGD
"/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
+# define DEVRANDOM_EGD
"/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
+# endif
 #endif
 
 #if defined(OPENSSL_SYS_VXWORKS)

 
-- 
Andy, BlueArc Engineering
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to