This section addresses features deprecated or changed since the Directory Server5.2 release. Where possible, use the replacement functionality.
The following table shows deprecated functions and their replacements for handling attribute values.
Table 2–1 Replacement Functions for Handling Attribute Values
Deprecated Function |
Replacement Function |
---|---|
slapi_attr_first_value() |
slapi_attr_first_value_const() |
slapi_attr_next_value() |
slapi_attr_next_value_const() |
slapi_valueset_add_value() |
slapi_valueset_add_value_optimised() |
slapi_valueset_first_value() |
slapi_valueset_first_value_const() |
slapi_valueset_next_value() |
slapi_valueset_next_value_const() |
slapi_valueset_set_valueset() |
slapi_valueset_set_valueset_optimised() |
slapi_valueset_find() |
slapi_valueset_find_const() |
The following functions now apply const correctness:
slapi_build_control()
slapi_build_control_from_berval()
slapi_control_present()
slapi_dup_control()
slapi_entry2str()
slapi_entry2str_with_options()
slapi_get_account_availability()
slapi_log_error_ex()
slapi_log_info_ex()
slapi_log_warning_ex()
slapi_register_supported_control()
slapi_search_internal_get_entry()
The following callback data types also now apply const correctness:
slapi_pwd_storage_scheme_cmp_fn
slapi_pwd_storage_scheme_dec_fn
slapi_pwd_storage_scheme_enc_fn
For updated prototypes, see install-path/ds6/include/slapi-plugin.h.