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. */ |