slapi_dup_control()
Makes an allocated copy of an
Syntax
#include "slapi-plugin.h"
LDAPControl * slapi_dup_control( LDAPControl *ctrl )
Parameters
This function takes the following parameter:
ctrl
Returns
This function returns one of the following values:
•
A pointer to an allocated
•
NULL
Description
This function duplicates the contents of an
the
LDAPControl
structure is returned.
Memory Concerns
The structure that is returned should be freed by calling
which is an LDAP API function (see the Netscape LDAP SDK for C Programmer's
Guide).
See Also
ldap_control_free()
slapi_get_supported_controls_copy()
Retrieves an allocated array of object identifiers (OIDs) representing the controls
supported by the Directory Server. You can register new controls by calling
slapi_register_supported_control()
Pointer to an LDAPControl structure whose contents are to be
duplicated.
LDAPControl
if an error occurs.
are copied to a new, allocated structure, and a pointer to the new
.
LDAPControl
structure if successful.
LDAPControl
.
Functions for Dealing with Controls
structure. All fields within
ldap_control_free()
Chapter 14
Function Reference
,
243
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.01 - PLUG-IN and is the answer not in the manual?
Questions and answers