]> granicus.if.org Git - apache/commitdiff
remove version checks for using EGD
authorDoug MacEachern <dougm@apache.org>
Tue, 12 Mar 2002 22:11:51 +0000 (22:11 +0000)
committerDoug MacEachern <dougm@apache.org>
Tue, 12 Mar 2002 22:11:51 +0000 (22:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93879 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/mod_ssl.h
modules/ssl/ssl_engine_rand.c

index cbeb68e4616ec1d29188059ac6e7f2fe1d97d8a2..818980a4e724bab3c725eab35be1e9becb0978a3 100644 (file)
@@ -449,10 +449,8 @@ typedef enum {
 typedef enum {
     SSL_RSSRC_BUILTIN = 1,
     SSL_RSSRC_FILE    = 2,
-    SSL_RSSRC_EXEC    = 3
-#if SSL_LIBRARY_VERSION >= 0x00905100
-   ,SSL_RSSRC_EGD     = 4
-#endif
+    SSL_RSSRC_EXEC    = 3,
+    SSL_RSSRC_EGD     = 4
 } ssl_rssrc_t;
 typedef struct {
     ssl_rsctx_t  nCtx;
index 89e62f51b5b2e54906463e079218879218380df3..42845c70e9b8a62db799157bfc40152cf5cb8408 100644 (file)
@@ -116,7 +116,6 @@ int ssl_rand_seed(server_rec *s, apr_pool_t *p, ssl_rsctx_t nCtx, char *prefix)
                 nDone += ssl_rand_feedfp(p, fp, pRandSeed->nBytes);
                 ssl_util_ppclose(s, p, fp);
             }
-#if SSL_LIBRARY_VERSION >= 0x00905100
             else if (pRandSeed->nSrc == SSL_RSSRC_EGD) {
                 /*
                  * seed in contents provided by the external
@@ -126,7 +125,6 @@ int ssl_rand_seed(server_rec *s, apr_pool_t *p, ssl_rsctx_t nCtx, char *prefix)
                     continue;
                 nDone += n;
             }
-#endif
             else if (pRandSeed->nSrc == SSL_RSSRC_BUILTIN) {
                 struct {
                     time_t t;
@@ -159,10 +157,9 @@ int ssl_rand_seed(server_rec *s, apr_pool_t *p, ssl_rsctx_t nCtx, char *prefix)
     }
     ssl_log(s, SSL_LOG_INFO, "%sSeeding PRNG with %d bytes of entropy", prefix, nDone);
 
-#if SSL_LIBRARY_VERSION >= 0x00905100
     if (RAND_status() == 0)
         ssl_log(s, SSL_LOG_WARN, "%sPRNG still contains not sufficient entropy!", prefix);
-#endif
+
     return nDone;
 }