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

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.573 2009/01/07 16:19:02 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.574 2009/01/08 23:14:46 mast Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1245:   protected string get_err_md5(array(string|array(string)|array(array)) err_info)   {    if (err_info) { -  return String.string2hex(Crypto.MD5()->update(err_info[3])->digest()); +  return String.string2hex(Crypto.MD5.hash(err_info[3]));    }    return "NONE";   }
1433:    mapping e = roxen.query_var("errors");    if(e) {    array r = e[(int)eid]; -  if (r && (md5 == String.string2hex(Crypto.MD5()->update(r[3])->digest()))) { +  if (r && (md5 == String.string2hex(Crypto.MD5.hash(r[3])))) {    return r;    }    }