HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Netscape Portable Runtime (NSPR) PRNetADDr structure for storing the IP addresses.
Because of this, the NSPR files are shipped with Directory Server.
The NSPR API allows compliant applications to use system facilities such as threads, thread
synchronization, I/O, interval timing, atomic operations, and several other low-level services
in a platform-independent manner.
1.5 Deprecated functions and replacements
Several functions have been deprecated in the Directory Server plug-in API. The deprecated
functions are still supported for backward compatibility. They are, however, no longer
documented and should not be used.
Table 1-1 “Deprecated functions and suggested replacements” lists the deprecated functions and
the functions to use in their place. Some other legacy deprecated functions and their recommended
replacements are in /opt/dirsrv/devel/include/slapi-plugin-compat4.h.
Table 1-1 Deprecated functions and suggested replacements
Suggested replacement functionDeprecated function
These functions deal with bervals. These functions are deprecated and their use is not recommended. For each
deprecated function, a corresponding function is listed in slapi-plugin.h with an _sv extension that uses
Slapi_Values instead of bervals. The new functions are more efficient than the earlier ones.
slapi_entry_attr_merge_sv()slapi_entry_attr_merge()
slapi_entry_add_values_sv()slapi_entry_add_values()
slapi_entry_delete_values_sv()slapi_entry_delete_values()
slapi_entry_attr_replace_sv()slapi_entry_attr_replace()
slapi_attr_value_find()slapi_attr_get_values()
slapi_attr_get_oid_copy()slapi_attr_get_oid()
slapi_pw_find_sv()slapi_pw_find()
slapi_call_syntax_values2keys_sv()slapi_call_syntax_values2keys()
slapi_call_syntax_assertion2keys_ava_sv()slapi_call_syntax_assertion2keys_ava()
slapi_call_syntax_assertion2keys_sub_sv()slapi_call_syntax_assertion2keys_sub()
slapi_entry_attr_has_syntax_value()slapi_entry_attr_hasvalue()
The following internal-operation calls are deprecated. The new internal operation functions that are defined in
slapi-plugin.h take a Slapi_PBlock for extensibility and support the new plug-in configuration capabilities.
slapi_search_internal_callback_pb()slapi_search_internal_callback()
slapi_search_internal_pb()slapi_search_internal()
slapi_modify_internal_pb()slapi_modify_internal()
slapi_add_internal_pb()slapi_add_internal()
slapi_delete_internal_pb()slapi_delete_internal()
slapi_modrdn_internal_pb()slapi_modrdn_internal()
The following functions are not multi-thread safe; they return a pointer to unprotected data. Use the new functions
in slapi-plugin.h that end in _copy() instead.
slapi_get_supported_controls_copy()slapi_get_supported_controls()
slapi_get_supported_extended_ops_copy()slapi_get_supported_extended_ops()
slapi_get_supported_saslmechanisms_copy()slapi_get_supported_saslmechanism()
28 An overview of Directory Server plug-ins