diff options
author | Cliff Woolley <jwoolley@apache.org> | 2002-03-01 05:35:17 +0100 |
---|---|---|
committer | Cliff Woolley <jwoolley@apache.org> | 2002-03-01 05:35:17 +0100 |
commit | 8097066e906f9e8ac0569fc3f5b18a7d3fdf685f (patch) | |
tree | 557c23ce193d512ff47d01e66d45665c8e7766b4 /modules/ssl/ssl_engine_rand.c | |
parent | Give mod_dav the ability to output both standard and customized (diff) | |
download | apache2-8097066e906f9e8ac0569fc3f5b18a7d3fdf685f.tar.xz apache2-8097066e906f9e8ac0569fc3f5b18a7d3fdf685f.zip |
Consensus is that we should not use the scoreboard as a source of entropy.
Reviewed by: OtherBill, Justin, Madhu
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93652 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ssl/ssl_engine_rand.c')
-rw-r--r-- | modules/ssl/ssl_engine_rand.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/modules/ssl/ssl_engine_rand.c b/modules/ssl/ssl_engine_rand.c index 230646d436..89e62f51b5 100644 --- a/modules/ssl/ssl_engine_rand.c +++ b/modules/ssl/ssl_engine_rand.c @@ -81,7 +81,6 @@ int ssl_rand_seed(server_rec *s, apr_pool_t *p, ssl_rsctx_t nCtx, char *prefix) int nReq, nDone; apr_file_t *fp; int i, n, l; - int m; mc = myModConfig(s); nReq = 0; @@ -155,21 +154,6 @@ int ssl_rand_seed(server_rec *s, apr_pool_t *p, ssl_rsctx_t nCtx, char *prefix) RAND_seed(stackdata+n, 128); nDone += 128; - /* - * seed in data extracted from the current scoreboard - * - * XXX: this assumes that the entire scoreboard is - * allocated in one big block of memory that begins at - * the location pointed to by ap_scoreboard_image->global - */ - if (ap_scoreboard_image != NULL && mc->nScoreboardSize > 16) - { - m = ((mc->nScoreboardSize / 2) - 1); - n = ssl_rand_choosenum(0, m); - RAND_seed( - ((unsigned char *)ap_scoreboard_image->global)+n, m); - nDone += m; - } } } } |