OBJ_sn2nid

Look up the numeric object identifier (NID) for a short name string.

Synopsis

Declared in <openssl/objects.h>

int
OBJ_sn2nid(char const* s);

Return Value

Matching NID, or NID_undef if s is not recognised.

Parameters

NameDescription
sShort name such as "SHA256" or "rsaEncryption".