Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
4f003dbd
Commit
4f003dbd
authored
Oct 12, 2003
by
Kurt Zeilenga
Browse files
mv ldap_int_get_controls to ldap_pvt_get_controls
parent
10622b1d
Changes
9
Hide whitespace changes
Inline
Side-by-side
clients/tools/ldapsearch.c
View file @
4f003dbd
...
...
@@ -1131,11 +1131,10 @@ print_entry(
}
write_ldif
(
LDIF_PUT_VALUE
,
"dn"
,
bv
.
bv_val
,
bv
.
bv_len
);
rc
=
ldap_int_get_controls
(
ber
,
&
ctrls
);
rc
=
ldap_pvt_get_controls
(
ber
,
&
ctrls
);
if
(
rc
!=
LDAP_SUCCESS
)
{
fprintf
(
stderr
,
_
(
"print_entry: %d
\n
"
),
rc
);
ldap_perror
(
ld
,
"ldap_
get_entry
_controls"
);
ldap_perror
(
ld
,
"ldap_
pvt_get
_controls"
);
exit
(
EXIT_FAILURE
);
}
...
...
include/ldap_pvt.h
View file @
4f003dbd
...
...
@@ -155,6 +155,9 @@ LDAP_F (struct ldapcontrol *) ldap_control_dup LDAP_P((
LDAP_F
(
struct
ldapcontrol
**
)
ldap_controls_dup
LDAP_P
((
struct
ldapcontrol
*
const
*
ctrls
));
LDAP_F
(
int
)
ldap_int_get_controls
LDAP_P
((
BerElement
*
be
,
struct
ldapcontrol
***
ctrlsp
));
#ifdef HAVE_CYRUS_SASL
/* cyrus.c */
...
...
libraries/libldap/controls.c
View file @
4f003dbd
...
...
@@ -114,7 +114,7 @@ ldap_int_put_controls(
return
LDAP_SUCCESS
;
}
int
ldap_
in
t_get_controls
(
int
ldap_
pv
t_get_controls
(
BerElement
*
ber
,
LDAPControl
***
ctrls
)
{
...
...
libraries/libldap/error.c
View file @
4f003dbd
...
...
@@ -341,7 +341,7 @@ ldap_parse_result(
}
if
(
tag
!=
LBER_ERROR
)
{
int
rc
=
ldap_
in
t_get_controls
(
ber
,
serverctrls
);
int
rc
=
ldap_
pv
t_get_controls
(
ber
,
serverctrls
);
if
(
rc
!=
LDAP_SUCCESS
)
{
tag
=
LBER_ERROR
;
...
...
libraries/libldap/extended.c
View file @
4f003dbd
...
...
@@ -376,7 +376,7 @@ ldap_parse_intermediate (
goto
free_and_return
;
}
rc
=
ldap_
in
t_get_controls
(
ber
,
serverctrls
);
rc
=
ldap_
pv
t_get_controls
(
ber
,
serverctrls
);
free_and_return:
ber_free
(
ber
,
0
);
...
...
libraries/libldap/getentry.c
View file @
4f003dbd
...
...
@@ -97,7 +97,7 @@ ldap_get_entry_controls(
goto
cleanup_and_return
;
}
rc
=
ldap_
in
t_get_controls
(
&
be
,
sctrls
);
rc
=
ldap_
pv
t_get_controls
(
&
be
,
sctrls
);
cleanup_and_return:
if
(
rc
!=
LDAP_SUCCESS
)
{
...
...
libraries/libldap/ldap-int.h
View file @
4f003dbd
...
...
@@ -402,10 +402,6 @@ LDAP_F (int) ldap_check_cache LDAP_P(( LDAP *ld, ber_tag_t msgtype, BerElement *
/*
* in controls.c
*/
LDAP_F
(
int
)
ldap_int_get_controls
LDAP_P
((
BerElement
*
be
,
LDAPControl
***
ctrlsp
));
LDAP_F
(
int
)
ldap_int_put_controls
LDAP_P
((
LDAP
*
ld
,
LDAPControl
*
const
*
ctrls
,
...
...
libraries/libldap/references.c
View file @
4f003dbd
...
...
@@ -106,7 +106,7 @@ ldap_parse_reference(
goto
free_and_return
;
}
rc
=
ldap_
in
t_get_controls
(
&
be
,
serverctrls
);
rc
=
ldap_
pv
t_get_controls
(
&
be
,
serverctrls
);
free_and_return:
...
...
servers/slapd/syncrepl.c
View file @
4f003dbd
...
...
@@ -805,8 +805,7 @@ syncrepl_message_to_entry(
ber_scanf
(
ber
,
"{xx"
);
rc
=
ldap_int_get_controls
(
ber
,
&
rctrls
);
rc
=
ldap_pvt_get_controls
(
ber
,
&
rctrls
);
if
(
rc
!=
LDAP_SUCCESS
)
{
#ifdef NEW_LOGGING
LDAP_LOG
(
OPERATION
,
ERR
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment