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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:1:   // LDAP client protocol implementation for Pike.   // - // $Id: protocol.pike,v 1.3 1999/12/30 00:34:10 grubba Exp $ + // $Id: protocol.pike,v 1.4 1999/12/30 15:37:26 grubba 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:382:    return(readbuf);       }      /* ------------ legacy support -----------------*/       string|int readmsg(int msgid) {    // Reads LDAP PDU (with defined msgid) from server, checks msgid ...       int msglen = 0, ix; -  string|int(-1..0) retv; +  string|int retv;    string s, shlp;       retv = ldap::read(2); // 1. byte = 0x0C, 2. byte = msglen    if (intp(retv) && (retv == -1)) {    seterr (LDAP_TIMEOUT);    DWRITE_HI("protocol.readmsg: ERROR: connection timeout.\n");    THROW(({"LDAP: connection timeout.\n",backtrace()}));    return(-ldap_errno);    }    if (!retv || (sizeof(retv) != 2) || (retv[0] != '0')) {