ASN1_check_infinite_end

Check for an indefinite-length end-of-contents (EOC) marker without consuming it.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_check_infinite_end(
    unsigned char** p,
    long len);

Return Value

Non-zero if an EOC is present (or len indicates end), or 0 otherwise.

Parameters

NameDescription
pAddress of the input cursor pointing at candidate EOC octets.
lenRemaining bytes available at *p.