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

Collapse All | Expand All

(-)security/heimdal/files/patch-include_crypto-headers.h (+14 lines)
Line 0 Link Here
1
--- include/crypto-headers.h.orig	2012-12-09 23:06:44.000000000 +0100
2
+++ include/crypto-headers.h	2015-03-11 19:50:53.148719459 +0100
3
@@ -28,6 +28,11 @@
4
 #ifndef BN_is_negative
5
 #define BN_set_negative(bn, flag) ((bn)->neg=(flag)?1:0)
6
 #define BN_is_negative(bn) ((bn)->neg != 0)
7
+
8
+#ifndef LIBRESSL_VERSION_NUMBER
9
+#define HAVE_RAND_EGD
10
+#endif
11
+
12
 #endif
13
 
14
 #else /* !HAVE_OPENSSL */
(-)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 23:06:44.000000000 +0100
2
+++ lib/hcrypto/rand-egd.c	2015-03-11 18:59:17.067934065 +0100
3
@@ -33,6 +33,8 @@
4
 
5
 #include <config.h>
6
 
7
+#ifdef HAVE_RAND_EGD
8
+
9
 #include <sys/types.h>
10
 #ifdef HAVE_SYS_UN_H
11
 #include <sys/un.h>
12
@@ -258,3 +260,5 @@
13
 
14
     return 1;
15
 }
16
+
17
+#endif
(-)security/heimdal/files/patch-lib_krb5_crypto-rand.c (+18 lines)
Line 0 Link Here
1
--- lib/krb5/crypto-rand.c.orig	2012-12-09 23:06:44.000000000 +0100
2
+++ lib/krb5/crypto-rand.c	2015-03-11 19:01:30.449923193 +0100
3
@@ -66,6 +66,7 @@
4
 	krb5_context context;
5
 	const char *p;
6
 
7
+#ifdef HAVE_RAND_EGD
8
 	/* Try using egd */
9
 	if (!krb5_init_context(&context)) {
10
 	    p = krb5_config_get_string(context, NULL, "libdefaults",
11
@@ -74,6 +75,7 @@
12
 		RAND_egd_bytes(p, ENTROPY_NEEDED);
13
 	    krb5_free_context(context);
14
 	}
15
+#endif
16
 #else
17
 	/* TODO: Once a Windows CryptoAPI RAND method is defined, we
18
 	   can use that and failover to another method. */

Return to bug 198527