OBJ_length

Return the length in bytes of an ASN.1 object's encoded OID content.

Synopsis

Declared in <openssl/objects.h>

size_t
OBJ_length(ASN1_OBJECT const* obj);

Return Value

Number of content octets in the OID, or 0 if obj is NULL or has no data.

Parameters

NameDescription
objObject identifier to query; NULL yields 0.