Lines Matching refs:ludp
127 LDAPURLDesc **ludp);
128 static void _ldap_free_urldesc(LDAPURLDesc *ludp);
312 LDAPURLDesc *ludp = NULL; in ldap_do() local
338 rc = ldap_url_parse(data->state.url, &ludp); in ldap_do()
340 rc = _ldap_url_parse(data, conn, &ludp); in ldap_do()
545 rc = (int)ldap_search_s(server, ludp->lud_dn, in ldap_do()
546 (curl_ldap_num_t)ludp->lud_scope, in ldap_do()
547 ludp->lud_filter, ludp->lud_attrs, 0, &ldapmsg); in ldap_do()
749 if(ludp) in ldap_do()
750 ldap_free_urldesc(ludp); in ldap_do()
853 const struct connectdata *conn, LDAPURLDesc *ludp) in _ldap_url_parse2() argument
868 ludp->lud_scope = LDAP_SCOPE_BASE; in _ldap_url_parse2()
869 ludp->lud_port = conn->remote_port; in _ldap_url_parse2()
870 ludp->lud_host = conn->host.name; in _ldap_url_parse2()
904 ludp->lud_dn = curlx_convert_UTF8_to_tchar(unescaped); in _ldap_url_parse2()
909 if(!ludp->lud_dn) { in _ldap_url_parse2()
915 ludp->lud_dn = unescaped; in _ldap_url_parse2()
941 ludp->lud_attrs = calloc(count + 1, sizeof(TCHAR *)); in _ldap_url_parse2()
943 ludp->lud_attrs = calloc(count + 1, sizeof(char *)); in _ldap_url_parse2()
945 if(!ludp->lud_attrs) { in _ldap_url_parse2()
972 ludp->lud_attrs[i] = curlx_convert_UTF8_to_tchar(unescaped); in _ldap_url_parse2()
977 if(!ludp->lud_attrs[i]) { in _ldap_url_parse2()
985 ludp->lud_attrs[i] = unescaped; in _ldap_url_parse2()
988 ludp->lud_attrs_dups++; in _ldap_url_parse2()
1004 ludp->lud_scope = str2scope(p); in _ldap_url_parse2()
1005 if(ludp->lud_scope == -1) { in _ldap_url_parse2()
1010 LDAP_TRACE(("scope %d\n", ludp->lud_scope)); in _ldap_url_parse2()
1039 ludp->lud_filter = curlx_convert_UTF8_to_tchar(unescaped); in _ldap_url_parse2()
1044 if(!ludp->lud_filter) { in _ldap_url_parse2()
1050 ludp->lud_filter = unescaped; in _ldap_url_parse2()
1072 LDAPURLDesc *ludp = calloc(1, sizeof(*ludp)); in _ldap_url_parse() local
1076 if(!ludp) in _ldap_url_parse()
1079 rc = _ldap_url_parse2(data, conn, ludp); in _ldap_url_parse()
1081 _ldap_free_urldesc(ludp); in _ldap_url_parse()
1082 ludp = NULL; in _ldap_url_parse()
1084 *ludpp = ludp; in _ldap_url_parse()
1088 static void _ldap_free_urldesc(LDAPURLDesc *ludp) in _ldap_free_urldesc() argument
1090 if(!ludp) in _ldap_free_urldesc()
1094 curlx_unicodefree(ludp->lud_dn); in _ldap_free_urldesc()
1095 curlx_unicodefree(ludp->lud_filter); in _ldap_free_urldesc()
1097 free(ludp->lud_dn); in _ldap_free_urldesc()
1098 free(ludp->lud_filter); in _ldap_free_urldesc()
1101 if(ludp->lud_attrs) { in _ldap_free_urldesc()
1103 for(i = 0; i < ludp->lud_attrs_dups; i++) { in _ldap_free_urldesc()
1105 curlx_unicodefree(ludp->lud_attrs[i]); in _ldap_free_urldesc()
1107 free(ludp->lud_attrs[i]); in _ldap_free_urldesc()
1110 free(ludp->lud_attrs); in _ldap_free_urldesc()
1113 free(ludp); in _ldap_free_urldesc()