Lines 66-71
seed_something(void)
Link Here
|
66 |
krb5_context context; |
66 |
krb5_context context; |
67 |
const char *p; |
67 |
const char *p; |
68 |
|
68 |
|
|
|
69 |
#ifndef OPENSSL_NO_EGD |
69 |
/* Try using egd */ |
70 |
/* Try using egd */ |
70 |
if (!krb5_init_context(&context)) { |
71 |
if (!krb5_init_context(&context)) { |
71 |
p = krb5_config_get_string(context, NULL, "libdefaults", |
72 |
p = krb5_config_get_string(context, NULL, "libdefaults", |
Lines 74-79
seed_something(void)
Link Here
|
74 |
RAND_egd_bytes(p, ENTROPY_NEEDED); |
75 |
RAND_egd_bytes(p, ENTROPY_NEEDED); |
75 |
krb5_free_context(context); |
76 |
krb5_free_context(context); |
76 |
} |
77 |
} |
|
|
78 |
#endif |
77 |
#else |
79 |
#else |
78 |
/* TODO: Once a Windows CryptoAPI RAND method is defined, we |
80 |
/* TODO: Once a Windows CryptoAPI RAND method is defined, we |
79 |
can use that and failover to another method. */ |
81 |
can use that and failover to another method. */ |