Lines Matching refs:ludp

115                              LDAPURLDesc **ludp);
116 static void _ldap_free_urldesc (LDAPURLDesc *ludp);
192 LDAPURLDesc *ludp = NULL; in Curl_ldap() local
221 rc = ldap_url_parse(data->change.url, &ludp); in Curl_ldap()
223 rc = _ldap_url_parse(conn, &ludp); in Curl_ldap()
419 rc = ldap_search_s(server, ludp->lud_dn, ludp->lud_scope, in Curl_ldap()
420 ludp->lud_filter, ludp->lud_attrs, 0, &ldapmsg); in Curl_ldap()
664 if(ludp) in Curl_ldap()
665 ldap_free_urldesc(ludp); in Curl_ldap()
771 static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp) in _ldap_url_parse2() argument
785 ludp->lud_scope = LDAP_SCOPE_BASE; in _ldap_url_parse2()
786 ludp->lud_port = conn->remote_port; in _ldap_url_parse2()
787 ludp->lud_host = conn->host.name; in _ldap_url_parse2()
815 ludp->lud_dn = Curl_convert_UTF8_to_tchar(unescaped); in _ldap_url_parse2()
820 if(!ludp->lud_dn) { in _ldap_url_parse2()
826 ludp->lud_dn = unescaped; in _ldap_url_parse2()
852 ludp->lud_attrs = calloc(count + 1, sizeof(TCHAR *)); in _ldap_url_parse2()
854 ludp->lud_attrs = calloc(count + 1, sizeof(char *)); in _ldap_url_parse2()
856 if(!ludp->lud_attrs) { in _ldap_url_parse2()
881 ludp->lud_attrs[i] = Curl_convert_UTF8_to_tchar(unescaped); in _ldap_url_parse2()
886 if(!ludp->lud_attrs[i]) { in _ldap_url_parse2()
894 ludp->lud_attrs[i] = unescaped; in _ldap_url_parse2()
897 ludp->lud_attrs_dups++; in _ldap_url_parse2()
913 ludp->lud_scope = str2scope(p); in _ldap_url_parse2()
914 if(ludp->lud_scope == -1) { in _ldap_url_parse2()
919 LDAP_TRACE (("scope %d\n", ludp->lud_scope)); in _ldap_url_parse2()
947 ludp->lud_filter = Curl_convert_UTF8_to_tchar(unescaped); in _ldap_url_parse2()
952 if(!ludp->lud_filter) { in _ldap_url_parse2()
958 ludp->lud_filter = unescaped; in _ldap_url_parse2()
978 LDAPURLDesc *ludp = calloc(1, sizeof(*ludp)); in _ldap_url_parse() local
982 if(!ludp) in _ldap_url_parse()
985 rc = _ldap_url_parse2 (conn, ludp); in _ldap_url_parse()
987 _ldap_free_urldesc(ludp); in _ldap_url_parse()
988 ludp = NULL; in _ldap_url_parse()
990 *ludpp = ludp; in _ldap_url_parse()
994 static void _ldap_free_urldesc (LDAPURLDesc *ludp) in _ldap_free_urldesc() argument
998 if(!ludp) in _ldap_free_urldesc()
1001 free(ludp->lud_dn); in _ldap_free_urldesc()
1002 free(ludp->lud_filter); in _ldap_free_urldesc()
1004 if(ludp->lud_attrs) { in _ldap_free_urldesc()
1005 for(i = 0; i < ludp->lud_attrs_dups; i++) in _ldap_free_urldesc()
1006 free(ludp->lud_attrs[i]); in _ldap_free_urldesc()
1007 free(ludp->lud_attrs); in _ldap_free_urldesc()
1010 free (ludp); in _ldap_free_urldesc()