Find the next attribute on an EVP_PKEY matching object identifier obj.

Synopsis

Declared in <openssl/x509.h>

int
EVP_PKEY_get_attr_by_OBJ(
    EVP_PKEY const* key,
    ASN1_OBJECT const* obj,
    int lastpos);

Return Value

  • Attribute index, or ‐1 if not found.

  • Attribute index, or ‐1 if not found.

Parameters

Name

Description

key

Key whose attribute stack is searched.

obj

Attribute type OID to match.

lastpos

Index to search after, or ‐1 to start from the beginning.

Created with MrDocs