Makes a copy of an existing berval structure.
#include "slapi-plugin.h" struct berval* slapi_ch_bvdup( const struct berval *v );
This function takes the following parameter:
Pointer to the berval structure that you want to copy.
This function returns a pointer to the new copy of the berval structure. If the structure cannot be duplicated (for example, if no more virtual memory exists), the slapd program terminates.
The contents of the v parameter are not altered by this function. The returned berval structure should be freed by calling ber_bvfree(3LDAP), which is an LDAP API function.
ber_bvfree(3LDAP)