Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function allocates and constructs a new BerElementstructure.

Syntax

BerElement* ber_alloc_t(
  INT 
iOptions
);

Parameters

iOptions

[in] Bitwise OR of the options that are to be used when generating the encoding or decoding of the BerElementstructure. The LBER_USE_DER flag (0x01) should always be specified, which causes the element lengths to be encoded in the minimum number of octets. Unrecognized option bits are ignored.

Return Value

If this function succeeds, the return value is a pointer to the newly allocated BerElement.

If this function fails, it returns a NULL pointer.

Remarks

The LBER_USE_DER option does not cause values of sets to be rearranged in tag and byte order or default values to be removed. As a result these functions are not sufficient for generating DER output as defined in X.509 and X.680. If the caller takes responsibility for ordering values of sets correctly and removing default values, DER output as defined in X.509 and X.680 can be produced.

Requirements

Header winber.h
Library wldap32.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

BerElement