EVP_PKEY_get_attr_by_NID

Find the next attribute on an EVP_PKEY whose type NID equals nid.

Synopsis

Declared in <openssl/x509.h>

int
EVP_PKEY_get_attr_by_NID(
    EVP_PKEY const* key,
    int nid,
    int lastpos);

Return Value

Attribute index, or -1 if not found.

Parameters

NameDescription
keyKey whose attribute stack is searched.
nidAttribute type NID to match.
lastposIndex to search after (-1 to start from the beginning).