Parse the ASN.1 identifier and length octets at *`pp.`

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_get_object(
    unsigned char const** pp,
    long* plength,
    int* ptag,
    int* pclass,
    long omax);

Return Value

Bitmask including 0x80 on error, 0x01 if constructed, 0x20 if indefinite length.

Parameters

Name

Description

pp

Address of the input cursor; advanced past the header on success.

plength

Receives the content length in bytes (or ‐1 for indefinite length).

ptag

Receives the tag number.

pclass

Receives the class (V_ASN1_UNIVERSAL, CONTEXT_SPECIFIC, …).

omax

Maximum number of bytes available from *`pp.`

Created with MrDocs