Lines Matching defs:code
31 * Notice that USE_OPENLDAP is only a source code selection switch. When
32 * libcurl is built with USE_OPENLDAP defined the libcurl source code that
33 * gets compiled is the code from openldap.c, otherwise the code that gets
34 * compiled is the code from ldap.c.
604 LDAPMessage *msg, int code)
616 if(code != LDAP_SUCCESS && code != LDAP_NO_RESULTS_RETURNED)
645 switch(code) {
657 result = oldap_map_error(code, CURLE_LOGIN_DENIED);
669 LDAPMessage *msg, int code)
684 result = Curl_sasl_continue(&li->sasl, data, code, &progress);
696 int code)
704 if(code != LDAP_SUCCESS)
705 return oldap_map_error(code, CURLE_LDAP_CANNOT_BIND);
728 int code = LDAP_SUCCESS;
750 /* Get error code from message. */
751 rc = ldap_parse_result(li->ld, msg, &code, NULL, NULL, NULL, NULL, 0);
753 code = rc;
755 /* store the latest code for later retrieval */
756 data->info.httpcode = code;
760 if(code == LDAP_PROTOCOL_ERROR && li->state != OLDAP_BINDV2 &&
787 if(code != LDAP_SUCCESS) {
789 result = oldap_map_error(code, CURLE_USE_SSL_FAILED);
803 result = oldap_map_error(code, CURLE_USE_SSL_FAILED);
820 result = oldap_state_mechs_resp(data, msg, code);
823 result = oldap_state_sasl_resp(data, msg, code);
827 result = oldap_state_bind_resp(data, msg, code);
986 int code;
1010 rc = ldap_parse_result(li->ld, msg, &code, NULL, &info, NULL, NULL, 0);
1018 /* store the latest code for later retrieval */
1019 data->info.httpcode = code;
1021 switch(code) {
1029 failf(data, "LDAP remote: search failed %s %s", ldap_err2string(code),