Branch: Tag:

2009-01-08

2009-01-08 23:14:46 by Stephen R. van den Berg <srb@cuci.nl>

Patch from srb: Use compacter (and faster) Crypto.XYZ.hash() member function.

Rev: server/base_server/global_variables.pike:1.115
Rev: server/base_server/prototypes.pike:1.224
Rev: server/base_server/roxen.pike:1.1009
Rev: server/bin/setup_nsr.pike:1.5
Rev: server/etc/modules/RXML.pmod/module.pmod:1.389
Rev: server/modules/tags/rxmltags.pike:1.582
Rev: server/protocols/http.pike:1.574

5:   #include <config.h>   #include <module.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.223 2009/01/07 14:12:02 mast Exp $"; + constant cvs_version="$Id: prototypes.pike,v 1.224 2009/01/08 23:14:46 mast Exp $";      #ifdef DAV_DEBUG   #define DAV_WERROR(X...) werror(X)
2525: Inside #if defined(RAM_CACHE)
   }    file->data = data;    heads->ETag = misc->etag = -  sprintf("\"%s\"", -  String.string2hex(Crypto.MD5()->update(data)->digest())); +  sprintf("\"%s\"", String.string2hex(Crypto.MD5.hash(data)));    }   #endif /* RAM_CACHE */