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

Name

Description

pp

Address of the output cursor; updated past the written header.

constructed

Non‐zero to set the constructed bit in the identifier.

length

Content length in bytes, or 0 when writing an indefinite‐length header.

tag

Tag number to encode.

xclass

Class bits (universal, application, context‐specific, or private).

Created with MrDocs