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

Name

Description

key

Key whose attribute stack is searched.

nid

Attribute type NID to match.

lastpos

Index to search after (‐1 to start from the beginning).

Created with MrDocs