pike.git / lib / modules / Sql.pmod / tds.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/tds.pike:1:   /* -  * $Id: tds.pike,v 1.19 2006/03/17 16:51:33 grubba Exp $ +  * $Id: tds.pike,v 1.20 2006/04/05 17:21:33 grubba Exp $    *    * A Pike implementation of the TDS protocol.    *    * Henrik Grubbström 2006-02-08.    */      #define TDS_DEBUG   #define TDS_CONVERT_DEBUG      #ifdef TDS_DEBUG
pike.git/lib/modules/Sql.pmod/tds.pike:577:       string answer_nt_challenge(string passwd, string nonce)    {    string nt_passwd = string_to_utf16(passwd);   #if constant(Crypto.MD4)    Crypto.MD4 md4 = Crypto.MD4();   #else   #if constant(Crypto.md4)    Crypto.md4 md4 = Crypto.md4();   #else -  error("MD4 hashes not supported in this Pike.\n"); +  predef::error("MD4 hashes not supported in this Pike.\n");    mixed md4;   #endif   #endif    md4->update(nt_passwd);    return encrypt_answer(md4->digest() + "\0"*16, nonce);    }       static void send_auth(string nonce)    {    int out_flag = 0x11;