Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

berval

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

Use a berval structure when working with binary attribute values such as a JPEG or audio file.

Syntax

/* Defined in ldap.h, which is included by slapi-plugin.h */
#include "slapi-plugin.h"
struct berval {
    unsigned long   bv_len;
    char          * bv_val;
};

Fields

This structure has the following fields.

Table 15–3 berval Fields

Field 

Description 

bv_len

Size of the encoded data. 

bv_val

Encoded data itself.