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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1:   #pike __REAL_VERSION__      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.70 2005/03/08 16:40:47 mast Exp $ + // $Id: client.pike,v 1.71 2005/03/08 16:41:32 mast Exp $   //   // Honza Petrous, hop@unibase.cz   //   // ----------------------------------------------------------------------   //   // History:   //   // v0.0 1998-05-25 Starting up!   // v1.0 1998-06-21 Core functions (open, bind, unbind, delete, add,   // compare, search), only V2 operations,
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:300:       // helper functions and macros      #ifdef ENABLE_PAGED_SEARCH   #define IF_ELSE_PAGED_SEARCH(X,Y) X   #else /* !ENABLE_PAGED_SEARCH */   #define IF_ELSE_PAGED_SEARCH(X,Y) Y   #endif      #ifdef LDAP_PROTOCOL_PROFILE - #define PROFILE(STR, CODE) DWRITE_PROF(STR + ": %O\n", gauge {CODE;}) + #define PROFILE(STR, CODE...) DWRITE_PROF(STR + ": %O\n", gauge {CODE;})   #else - #define PROFILE(STR, CODE) do { CODE; } while(0) + #define PROFILE(STR, CODE...) do { CODE; } while(0)   #endif       private int chk_ver() {       if ((ldap_version != 2) && (ldap_version != 3)) {    seterr (LDAP_PROTOCOL_ERROR);    THROW(({"LDAP: Unknown/unsupported protocol version.\n",backtrace()}));    return -ldap_errno;    }    return 0;
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:363:    //! @expr{"ldap://hostname/basedn?attrlist?scope?ext"@}    //!    //! @param context    //! TLS context of connection    //!    //! @seealso    //! @[LDAP.client.bind], @[LDAP.client.search]    void create(string|void url, object|void context)    {    -  info = ([ "code_revision" : ("$Revision: 1.70 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.71 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;       lauth = parse_url(url);       if(!stringp(lauth->scheme) ||    ((lauth->scheme != "ldap")   #if constant(SSL.Cipher.CipherAlgorithm)    && (lauth->scheme != "ldaps")