[#ASN1_get_object]
= ASN1&lowbar;get&lowbar;object
:mrdocs:

Parse the ASN&period;1 identifier and length octets at &ast;`pp&period;`

== Synopsis

Declared in `&lt;openssl&sol;asn1&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;get&lowbar;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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pp*
| Address of the input cursor&semi; advanced past the header on success&period;
| *plength*
| Receives the content length in bytes (or &hyphen;1 for indefinite length)&period;
| *ptag*
| Receives the tag number&period;
| *pclass*
| Receives the class (V&lowbar;ASN1&lowbar;UNIVERSAL, CONTEXT&lowbar;SPECIFIC, …)&period;
| *omax*
| Maximum number of bytes available from &ast;`pp&period;`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
