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

Name

Description

n

Object NID such as NID_sha256.

Created with MrDocs