]> git.sur5r.net Git - openldap/commitdiff
ITS#5916 - externally callable functions are ldap_pvt, not ldap_int.
authorHoward Chu <hyc@openldap.org>
Mon, 2 Feb 2009 21:14:34 +0000 (21:14 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 2 Feb 2009 21:14:34 +0000 (21:14 +0000)
include/ldap_pvt.h
libraries/libldap/ldap-int.h
libraries/libldap/search.c
servers/slapd/back-ldap/search.c
servers/slapd/back-meta/search.c

index 8760591023dd1eec6c01ea110b5e2813af98ef02..a75bc3edd5b55da8a5668d695616d421bad950bd 100644 (file)
@@ -304,6 +304,34 @@ LDAP_F( int )
 ldap_bv2escaped_filter_value_x LDAP_P(( struct berval *in, struct berval *out,
        int inplace, void *ctx ));
 
+LDAP_F (int) ldap_pvt_search LDAP_P((
+       struct ldap *ld,
+       LDAP_CONST char *base,
+       int scope,
+       LDAP_CONST char *filter,
+       char **attrs,
+       int attrsonly,
+       struct ldapcontrol **sctrls,
+       struct ldapcontrol **cctrls,
+       struct timeval *timeout,
+       int sizelimit,
+       int deref,
+       int *msgidp ));
+
+LDAP_F(int) ldap_pvt_search_s LDAP_P((
+       struct ldap *ld,
+       LDAP_CONST char *base,
+       int scope,
+       LDAP_CONST char *filter,
+       char **attrs,
+       int attrsonly,
+       struct ldapcontrol **sctrls,
+       struct ldapcontrol **cctrls,
+       struct timeval *timeout,
+       int sizelimit,
+       int deref,
+       struct ldapmsg **res ));
+
 /* string.c */
 LDAP_F( char * )
 ldap_pvt_str2upper LDAP_P(( char *str ));
index 30c8e87beca803f6fba66f0b43fbe79234988d09..81c4e6e1d18124a5574de1340867725ca7354c48 100644 (file)
@@ -591,34 +591,6 @@ LDAP_F (const char *) ldap_int_msgtype2str( ber_tag_t tag );
 /*
  * in search.c
  */
-LDAP_F (int) ldap_int_search LDAP_P((
-       LDAP *ld,
-       LDAP_CONST char *base,
-       int scope,
-       LDAP_CONST char *filter,
-       char **attrs,
-       int attrsonly,
-       LDAPControl **sctrls,
-       LDAPControl **cctrls,
-       struct timeval *timeout,
-       int sizelimit,
-       int deref,
-       int *msgidp ));
-
-LDAP_F(int) ldap_int_search_s LDAP_P((
-       LDAP *ld,
-       LDAP_CONST char *base,
-       int scope,
-       LDAP_CONST char *filter,
-       char **attrs,
-       int attrsonly,
-       LDAPControl **sctrls,
-       LDAPControl **cctrls,
-       struct timeval *timeout,
-       int sizelimit,
-       int deref,
-       LDAPMessage **res ));
-
 LDAP_F (BerElement *) ldap_build_search_req LDAP_P((
        LDAP *ld,
        const char *base,
index b1d643a6d73004c3707a60b4c1af5ce60810741c..7dfdbd16c37d855b329d933a804bdd0bd3f60106 100644 (file)
@@ -66,12 +66,12 @@ ldap_search_ext(
        int sizelimit,
        int *msgidp )
 {
-       return ldap_int_search( ld, base, scope, filter, attrs,
+       return ldap_pvt_search( ld, base, scope, filter, attrs,
                attrsonly, sctrls, cctrls, timeout, sizelimit, -1, msgidp );
 }
 
 int
-ldap_int_search(
+ldap_pvt_search(
        LDAP *ld,
        LDAP_CONST char *base,
        int scope,
@@ -147,12 +147,12 @@ ldap_search_ext_s(
        int sizelimit,
        LDAPMessage **res )
 {
-       return ldap_int_search_s( ld, base, scope, filter, attrs,
+       return ldap_pvt_search_s( ld, base, scope, filter, attrs,
                attrsonly, sctrls, cctrls, timeout, sizelimit, -1, res );
 }
 
 int
-ldap_int_search_s(
+ldap_pvt_search_s(
        LDAP *ld,
        LDAP_CONST char *base,
        int scope,
@@ -169,7 +169,7 @@ ldap_int_search_s(
        int rc;
        int     msgid;
 
-       rc = ldap_int_search( ld, base, scope, filter, attrs, attrsonly,
+       rc = ldap_pvt_search( ld, base, scope, filter, attrs, attrsonly,
                sctrls, cctrls, timeout, sizelimit, deref, &msgid );
 
        if ( rc != LDAP_SUCCESS ) {
index ad7a66474888b57329ad2a919b08a7353b8e3d6e..a3718aca4c02d83829e413f9254faacec0f2b7fe 100644 (file)
@@ -215,7 +215,7 @@ ldap_back_search(
        /* deal with <draft-zeilenga-ldap-t-f> filters */
        filter = op->ors_filterstr;
 retry:
-       rs->sr_err = ldap_int_search( lc->lc_ld, op->o_req_dn.bv_val,
+       rs->sr_err = ldap_pvt_search( lc->lc_ld, op->o_req_dn.bv_val,
                        op->ors_scope, filter.bv_val,
                        attrs, op->ors_attrsonly, ctrls, NULL,
                        tv.tv_sec ? &tv : NULL,
@@ -847,7 +847,7 @@ retry:
        }
 
        /* TODO: timeout? */
-       rc = ldap_int_search_s( lc->lc_ld, ndn->bv_val, LDAP_SCOPE_BASE, filter,
+       rc = ldap_pvt_search_s( lc->lc_ld, ndn->bv_val, LDAP_SCOPE_BASE, filter,
                                attrp, 0, ctrls, NULL,
                                NULL, LDAP_NO_LIMIT, op->ors_deref, &result );
        if ( rc != LDAP_SUCCESS ) {
index 7449c63ff72322aa104b9b9420f2d14fca43f8f5..6f237ea08ec3c06068e22a56b972d61fa688b874 100644 (file)
@@ -603,7 +603,7 @@ retry:;
         * Starts the search
         */
        assert( msc->msc_ld != NULL );
-       rc = ldap_int_search( msc->msc_ld,
+       rc = ldap_pvt_search( msc->msc_ld,
                        mbase.bv_val, realscope, mfilter.bv_val,
                        mapped_attrs, op->ors_attrsonly,
                        ctrls, NULL, tvp, op->ors_slimit, op->ors_deref,