pike.git / lib / modules / Protocols.pmod / LDAP.pmod / protocol.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:1:   #pike __REAL_VERSION__      // LDAP client protocol implementation for Pike.   // - // $Id: protocol.pike,v 1.19 2008/01/04 20:50:27 nilsson Exp $ + // $Id: protocol.pike,v 1.20 2008/01/13 17:02:43 nilsson Exp $   //   // Honza Petrous, hop@unibase.cz   //   // ----------------------------------------------------------------------   //   // History:   //   // v1.9 1999-02-19 created separate file   // - improved checking of readed bytes in 'readmsg'   // v1.9.1.1
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:199:    }          string|int do_op(object msgop, object|void controls) {    // ---------------------------    // Make LDAP PDU envelope for 'msgop', send it and read answer ...       object msgval;    object msgid;    int rv = 0, msgnum; -  string s; +        //THREAD_LOCK    msgnum = next_id++;    //THREAD_UNLOCK    msgid = Standards.ASN1.Types.asn1_integer(msgnum);    if (controls) {    msgval = Standards.ASN1.Types.asn1_sequence(({msgid, msgop, controls}));    } else {    msgval = Standards.ASN1.Types.asn1_sequence(({msgid, msgop}));    }
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:304:    DWRITE(sprintf("protocol.readmsg: %s\n", .ldap_privates.ldap_der_decode(retv)->debug_string()));    return retv;    }       int writemsg(object msgop) {    // Make LDAP PDU envelope for 'msgop' and send it       object msgval;    object msgid;    int rv = 0, msgnum; -  string s; +        //THREAD_LOCK    msgnum = next_id++;    //THREAD_UNLOCK    msgid = Standards.ASN1.Types.asn1_integer(msgnum);    msgval = Standards.ASN1.Types.asn1_sequence(({msgid, msgop}));       if (objectp(msgval)) {    DWRITE(sprintf("protocol.writemsg: msg = [%d]\n",sizeof(msgval->get_der())));    } else