You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2001/02/08 15:39:33 UTC

cvs commit: httpd-2.0/modules/aaa mod_auth_digest.c

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];