summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/src/modules/ssl/ssl_engine_rand.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-10-07 20:23:05 +0000
committerhenning <henning@openbsd.org>2002-10-07 20:23:05 +0000
commit643b6f823addcd38235201e661dabb67704f185a (patch)
treeabe6c1077b291daa5611b26bfffd322d464cba7f /usr.sbin/httpd/src/modules/ssl/ssl_engine_rand.c
parentA few typos, and sync with reality. (diff)
downloadwireguard-openbsd-643b6f823addcd38235201e661dabb67704f185a.tar.xz
wireguard-openbsd-643b6f823addcd38235201e661dabb67704f185a.zip
merge apache 1.3.27 and mod_ssl 2.8.11
Diffstat (limited to 'usr.sbin/httpd/src/modules/ssl/ssl_engine_rand.c')
-rw-r--r--usr.sbin/httpd/src/modules/ssl/ssl_engine_rand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/httpd/src/modules/ssl/ssl_engine_rand.c b/usr.sbin/httpd/src/modules/ssl/ssl_engine_rand.c
index 37af9c16680..98550060d02 100644
--- a/usr.sbin/httpd/src/modules/ssl/ssl_engine_rand.c
+++ b/usr.sbin/httpd/src/modules/ssl/ssl_engine_rand.c
@@ -126,7 +126,11 @@ int ssl_rand_seed(server_rec *s, pool *p, ssl_rsctx_t nCtx, char *prefix)
* seed in contents provided by the external
* Entropy Gathering Daemon (EGD)
*/
+#if SSL_LIBRARY_VERSION >= 0x00906000
+ if ((n = RAND_egd_bytes(pRandSeed->cpPath, pRandSeed->nBytes)) == -1)
+#else
if ((n = RAND_egd(pRandSeed->cpPath)) == -1)
+#endif
continue;
nDone += n;
}