View | Details | Raw Unified | Return to bug 198527 | Differences between
and this patch

Collapse All | Expand All

(-)security/heimdal/files/patch-lib_hcrypto_rand-egd.c (+17 lines)
Line 0 Link Here
1
--- lib/hcrypto/rand-egd.c.orig	2012-12-09 22:06:44 UTC
2
+++ lib/hcrypto/rand-egd.c
3
@@ -33,6 +33,8 @@
4
 
5
 #include <config.h>
6
 
7
+#ifndef OPENSSL_NO_EGD
8
+
9
 #include <sys/types.h>
10
 #ifdef HAVE_SYS_UN_H
11
 #include <sys/un.h>
12
@@ -258,3 +260,5 @@ RAND_egd_bytes(const char *filename, int
13
 
14
     return 1;
15
 }
16
+
17
+#endif
(-)security/heimdal/files/patch-lib_krb5_crypto-rand.c (+19 lines)
Line 0 Link Here
1
--- lib/krb5/crypto-rand.c.orig	2012-12-09 22:06:44 UTC
2
+++ lib/krb5/crypto-rand.c
3
@@ -66,6 +66,7 @@ seed_something(void)
4
 	krb5_context context;
5
 	const char *p;
6
 
7
+#ifndef OPENSSL_NO_EGD
8
 	/* Try using egd */
9
 	if (!krb5_init_context(&context)) {
10
 	    p = krb5_config_get_string(context, NULL, "libdefaults",
11
@@ -74,6 +75,8 @@ seed_something(void)
12
 		RAND_egd_bytes(p, ENTROPY_NEEDED);
13
 	    krb5_free_context(context);
14
 	}
15
+#endif
16
+
17
 #else
18
 	/* TODO: Once a Windows CryptoAPI RAND method is defined, we
19
 	   can use that and failover to another method. */

Return to bug 198527