EVP_PKEY_get_id

Return the numeric type identifier of a public-key object.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_get_id(EVP_PKEY const* pkey);

Return Value

Type constant such as EVP_PKEY_RSA, or EVP_PKEY_NONE if unset.

Parameters

NameDescription
pkeyKey whose type NID (or EVP_PKEY_NONE) is reported.