ASN1_put_object

Write an ASN.1 identifier and length octet(s) at *pp and advance the pointer.

Synopsis

Declared in <openssl/asn1.h>

void
ASN1_put_object(
    unsigned char** pp,
    int constructed,
    int length,
    int tag,
    int xclass);

Parameters

NameDescription
ppAddress of the output cursor; updated past the written header.
constructedNon-zero to set the constructed bit in the identifier.
lengthContent length in bytes, or 0 when writing an indefinite-length header.
tagTag number to encode.
xclassClass bits (universal, application, context-specific, or private).