Chapter 14. Data Type and Structure Reference

This part summarizes the data types and structures that you can use when writing Red Hat Directory Server plug-in functions.

14.1. berval

Represents binary data that is encoded using simplified Basic Encoding Rules (BER).
Syntax

This struct definition uses the following syntax:

typedef struct berval { 
 unsigned long bv_len; 
 char *bv_val; 
}BerValue;
Fields

This struct definition contains the following fields:

Table 14.1. Berval Field Listing

Field Description
bv_len The length of the data.
bv_val The binary data.
Description

The berval data structure represents binary data that is encoded using simplified Basic Encoding Rules (BER). The data and size of the data are included in a berval structure.

Use a berval structure when working with attributes that contain binary data (such as a JPEG or audio file).