httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/aaa mod_auth_digest.c
Date Thu, 08 Feb 2001 14:39:33 GMT
trawick     01/02/08 06:39:33

  Modified:    modules/aaa mod_auth_digest.c
  Log:
  Make a mod_auth_digest build fail in a less mysterious way on systems
  without APR random number support (e.g., a stock Tru64 system).
  
  Revision  Changes    Path
  1.33      +4 -1      httpd-2.0/modules/aaa/mod_auth_digest.c
  
  Index: mod_auth_digest.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/aaa/mod_auth_digest.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- mod_auth_digest.c	2001/02/08 07:43:58	1.32
  +++ mod_auth_digest.c	2001/02/08 14:39:31	1.33
  @@ -299,8 +299,11 @@
       ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, s,
   		 "Digest: generating secret for digest authentication ...");
   
  -    /* TODO - make sure this func works (compiles?) on win32 */
  +#if APR_HAS_RANDOM
       status = apr_generate_random_bytes(secret, sizeof(secret));
  +#else
  +#error APR random number support is missing; you probably need to install the truerand
library.
  +#endif
   
       if(!(status == APR_SUCCESS)) {
           char buf[120];
  
  
  

Mime
View raw message