EVP_PKEY_get_attr_by_OBJ

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

NameDescription
keyKey whose attribute stack is searched.
objAttribute type OID to match.
lastposIndex to search after, or -1 to start from the beginning.