mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#2240 ldap_controls_free and friends
This commit is contained in:
parent
71f9d69bd0
commit
17186ccaab
49
doc/man/man3/ldap_controls.3
Normal file
49
doc/man/man3/ldap_controls.3
Normal file
@ -0,0 +1,49 @@
|
||||
.TH LDAP_CONTROLS 3 "RELEASEDATE" "OpenLDAP LDVERSION"
|
||||
.\" $OpenLDAP$
|
||||
.\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved.
|
||||
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
||||
.SH NAME
|
||||
ldap_create_control, ldap_find_control, ldap_control_free, ldap_controls_free \- LDAP control manipulation routines
|
||||
.SH LIBRARY
|
||||
OpenLDAP LDAP (libldap, -lldap)
|
||||
.SH SYNOPSIS
|
||||
.B #include <ldap.h>
|
||||
.LP
|
||||
.BI "int ldap_create_control(LDAP_CONST char *" OID ", BerElement *" ber ", int " iscritical ", LDAPControl **" ctrlp ");"
|
||||
.LP
|
||||
.BI "LDAPControl *ldap_find_control(LDAP_CONST char *" OID ", LDAPControl **" ctrls ");"
|
||||
.LP
|
||||
.BI "void ldap_control_free(LDAPControl *" ctrl ");"
|
||||
.LP
|
||||
.BI "void ldap_controls_free(LDAPControl **" ctrls ");"
|
||||
.SH DESCRIPTION
|
||||
These routines are used to manipulate structures used for LDAP controls.
|
||||
.BR ldap_create_control ()
|
||||
creates a control with the specified
|
||||
.I OID
|
||||
using the contents of the
|
||||
.I ber
|
||||
parameter for the control value, if any. The
|
||||
.I iscritical
|
||||
parameter should be non-zero for a critical control. The created control
|
||||
is returned in the
|
||||
.I ctrlp
|
||||
parameter. The routine returns
|
||||
.B LDAP_SUCCESS
|
||||
on success or some other error code on failure.
|
||||
.BR ldap_find_control ()
|
||||
searches the
|
||||
.I ctrls
|
||||
array for a control whose OID matches the
|
||||
.I OID
|
||||
parameter. The routine returns a pointer to the control if found,
|
||||
NULL otherwise.
|
||||
.BR ldap_control_free ()
|
||||
frees an individual control structure, and
|
||||
.BR ldap_controls_free ()
|
||||
frees an array of controls.
|
||||
.SH SEE ALSO
|
||||
.BR ldap (3),
|
||||
.BR ldap_error (3)
|
||||
.SH ACKNOWLEDGEMENTS
|
||||
.so ../Project
|
4
doc/man/man3/ldap_controls.3.links
Normal file
4
doc/man/man3/ldap_controls.3.links
Normal file
@ -0,0 +1,4 @@
|
||||
ldap_create_control.3
|
||||
ldap_find_control.3
|
||||
ldap_control_free.3
|
||||
ldap_controls_free.3
|
Loading…
Reference in New Issue
Block a user