Lines Matching refs:ludp
104 LDAPURLDesc **ludp);
105 static void _ldap_free_urldesc(LDAPURLDesc *ludp);
274 LDAPURLDesc *ludp = NULL; in Curl_ldap() local
301 rc = ldap_url_parse(data->change.url, &ludp); in Curl_ldap()
303 rc = _ldap_url_parse(conn, &ludp); in Curl_ldap()
500 rc = ldap_search_s(server, ludp->lud_dn, ludp->lud_scope, in Curl_ldap()
501 ludp->lud_filter, ludp->lud_attrs, 0, &ldapmsg); in Curl_ldap()
719 if(ludp) in Curl_ldap()
720 ldap_free_urldesc(ludp); in Curl_ldap()
822 static int _ldap_url_parse2(const struct connectdata *conn, LDAPURLDesc *ludp) in _ldap_url_parse2() argument
837 ludp->lud_scope = LDAP_SCOPE_BASE; in _ldap_url_parse2()
838 ludp->lud_port = conn->remote_port; in _ldap_url_parse2()
839 ludp->lud_host = conn->host.name; in _ldap_url_parse2()
873 ludp->lud_dn = curlx_convert_UTF8_to_tchar(unescaped); in _ldap_url_parse2()
878 if(!ludp->lud_dn) { in _ldap_url_parse2()
884 ludp->lud_dn = unescaped; in _ldap_url_parse2()
910 ludp->lud_attrs = calloc(count + 1, sizeof(TCHAR *)); in _ldap_url_parse2()
912 ludp->lud_attrs = calloc(count + 1, sizeof(char *)); in _ldap_url_parse2()
914 if(!ludp->lud_attrs) { in _ldap_url_parse2()
941 ludp->lud_attrs[i] = curlx_convert_UTF8_to_tchar(unescaped); in _ldap_url_parse2()
946 if(!ludp->lud_attrs[i]) { in _ldap_url_parse2()
954 ludp->lud_attrs[i] = unescaped; in _ldap_url_parse2()
957 ludp->lud_attrs_dups++; in _ldap_url_parse2()
973 ludp->lud_scope = str2scope(p); in _ldap_url_parse2()
974 if(ludp->lud_scope == -1) { in _ldap_url_parse2()
979 LDAP_TRACE(("scope %d\n", ludp->lud_scope)); in _ldap_url_parse2()
1009 ludp->lud_filter = curlx_convert_UTF8_to_tchar(unescaped); in _ldap_url_parse2()
1014 if(!ludp->lud_filter) { in _ldap_url_parse2()
1020 ludp->lud_filter = unescaped; in _ldap_url_parse2()
1041 LDAPURLDesc *ludp = calloc(1, sizeof(*ludp)); in _ldap_url_parse() local
1045 if(!ludp) in _ldap_url_parse()
1048 rc = _ldap_url_parse2(conn, ludp); in _ldap_url_parse()
1050 _ldap_free_urldesc(ludp); in _ldap_url_parse()
1051 ludp = NULL; in _ldap_url_parse()
1053 *ludpp = ludp; in _ldap_url_parse()
1057 static void _ldap_free_urldesc(LDAPURLDesc *ludp) in _ldap_free_urldesc() argument
1059 if(!ludp) in _ldap_free_urldesc()
1062 free(ludp->lud_dn); in _ldap_free_urldesc()
1063 free(ludp->lud_filter); in _ldap_free_urldesc()
1065 if(ludp->lud_attrs) { in _ldap_free_urldesc()
1067 for(i = 0; i < ludp->lud_attrs_dups; i++) in _ldap_free_urldesc()
1068 free(ludp->lud_attrs[i]); in _ldap_free_urldesc()
1069 free(ludp->lud_attrs); in _ldap_free_urldesc()
1072 free(ludp); in _ldap_free_urldesc()