OBJ_nid2obj

Return the ASN1_OBJECT for a numeric identifier (NID).

Synopsis

Declared in <openssl/objects.h>

ASN1_OBJECT*
OBJ_nid2obj(int n);

Return Value

Internal ASN1_OBJECT pointer (do not free), or NULL if n is unknown.

Parameters

NameDescription
nObject NID such as NID_sha256.