martin      99/08/10 08:48:00

  Modified:    src/modules/experimental mod_auth_digest.c
  Log:
  Use TestCompile to search for the truerand library (rather than blindly
  assuming its existence). If it is not found, complain (but do not
  exit - yet).
  
  Revision  Changes    Path
  1.4       +11 -3     apache-1.3/src/modules/experimental/mod_auth_digest.c
  
  Index: mod_auth_digest.c
  ===================================================================
  RCS file: 
/export/home/cvs/apache-1.3/src/modules/experimental/mod_auth_digest.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- mod_auth_digest.c 1999/08/10 14:05:04     1.3
  +++ mod_auth_digest.c 1999/08/10 15:47:56     1.4
  @@ -95,13 +95,21 @@
            RULE_DEV_RANDOM="/dev/urandom"
        else
            RULE_DEV_RANDOM="truerand"
  +         if helpers/TestCompile func trand32; then
  +             :
  +         elif helpers/TestCompile lib rand trand32; then
  +             :
  +         else
  +             echo "      (mod_auth_digest) truerand library missing!"
  +             echo "** This will most probably defeat successful compilation."
  +         fi
        fi
       fi
       if [ "$RULE_DEV_RANDOM" = "truerand" ]; then
  -     echo "      (mod_auth_digest) using truerand library for the random 
seed"
  +     echo "    o mod_auth_digest using truerand library (-lrand) for the 
random seed"
        LIBS="$LIBS -L/usr/local/lib -lrand"
       else
  -     echo "      (mod_auth_digest) using $RULE_DEV_RANDOM for the random 
seed"
  +     echo "    o mod_auth_digest using $RULE_DEV_RANDOM for the random seed"
        CFLAGS="$CFLAGS -DDEV_RANDOM=$RULE_DEV_RANDOM"
       fi
   
  @@ -1203,7 +1211,7 @@
    * contacting the password server and retrieving the hash from it.
    *
    * TBD: This function should probably be in a seperate source file so that
  - * people need not modify mod_digest.c each time they install a new version
  + * people need not modify mod_auth_digest.c each time they install a new 
version
    * of apache.
    */
   static const char *get_userpw_hash(const request_rec *r,
  
  
  

Reply via email to