httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/ssl ssl_engine_rand.c
Date Sat, 29 Dec 2001 05:02:11 GMT
wrowe       01/12/28 21:02:11

  Modified:    modules/ssl ssl_engine_rand.c
  Log:
    Close a real GP fault.  This is the _wrong_solution_, but stops the
    segfaults against very odd RAND_seed errors given garbage in.
  
  Revision  Changes    Path
  1.8       +5 -1      httpd-2.0/modules/ssl/ssl_engine_rand.c
  
  Index: ssl_engine_rand.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_rand.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ssl_engine_rand.c	29 Nov 2001 05:17:38 -0000	1.7
  +++ ssl_engine_rand.c	29 Dec 2001 05:02:10 -0000	1.8
  @@ -149,14 +149,18 @@
                   RAND_seed(stackdata+n, 128);
                   nDone += 128;
   
  +#if XXX_SBENTROPY_SOLVED
                   /*
  +                 * XXX: This is entirely borked, SCOREBOARD_SIZE < 1024
  +                 *
                    * seed in an 1KB extract of the current scoreboard
                    */
                   if (ap_scoreboard_image != NULL) {
                       n = ssl_rand_choosenum(0, SCOREBOARD_SIZE-1024-1);
  -                    RAND_seed((unsigned char *)ap_scoreboard_image+n, 1024);
  +                    RAND_seed(((unsigned char *)ap_scoreboard_image)+n, 1024);
                       nDone += 1024;
                   }
  +#endif
               }
           }
       }
  
  
  

Mime
View raw message