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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:111:    }      //! @ignore   protected function(string:string) get_attr_decoder (string attr,    DO_IF_DEBUG (void|int nowarn))   {    if (mapping(string:mixed) attr_descr = get_attr_type_descr (attr)) {    if (function(string:string) decoder =    syntax_decode_fns[attr_descr->syntax_oid])    return decoder; - #ifdef DEBUG + #ifdef LDAP_DEBUG    else if (!get_constant_name (attr_descr->syntax_oid))    werror ("Warning: Unknown syntax %O for attribute %O - "    "binary content assumed.\n", attr_descr->syntax_oid, attr);   #endif    } - #ifdef DEBUG + #ifdef LDAP_DEBUG    else if (!nowarn && !has_suffix (attr, ";binary") && !has_value (attr, ";binary;"))    werror ("Warning: Couldn't fetch attribute description for %O - "    "binary content assumed.\n", attr);   #endif    return 0;   }   //! @endignore      protected function(string:string) get_attr_encoder (string attr)   {    if (mapping(string:mixed) attr_descr = get_attr_type_descr (attr)) {    if (function(string:string) encoder =    syntax_encode_fns[attr_descr->syntax_oid])    return encoder; - #ifdef DEBUG + #ifdef LDAP_DEBUG    else if (!get_constant_name (attr_descr->syntax_oid))    werror ("Warning: Unknown syntax %O for attribute %O - "    "binary content assumed.\n", attr_descr->syntax_oid, attr);   #endif    } - #ifdef DEBUG + #ifdef LDAP_DEBUG    else if (!has_suffix (attr, ";binary") && !has_value (attr, ";binary;"))    werror ("Warning: Couldn't fetch attribute description for %O - "    "binary content assumed.\n", attr);   #endif    return 0;   }      typedef string|Charset.DecodeError|    array(string|Charset.DecodeError) ResultAttributeValue;