Branch: Tag:

2010-10-10

2010-10-10 21:56:23 by Martin Stjernholm <mast@lysator.liu.se>

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

2:      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.119 2009/12/14 12:28:24 mast Exp $ + // $Id$   //   // Honza Petrous, hop@unibase.cz   //
899:    last_rv = SIMPLE_RESULT (raw, 1, 0);    if (!last_rv->error_number()) {    bound_dn = dn; -  md5_password = Crypto.MD5()->update (pass)->digest(); +  md5_password = Crypto.MD5.hash (pass);    }    DWRITE_HI(sprintf("client.BIND: %s\n", last_rv->error_string()));    seterr (last_rv->error_number(), last_rv->error_string());