EVP_PKEY_asn1_get0_info

Extract identifying metadata from an EVP_PKEY_ASN1_METHOD.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_asn1_get0_info(
    int* ppkey_id,
    int* pkey_base_id,
    int* ppkey_flags,
    char const** pinfo,
    char const** ppem_str,
    EVP_PKEY_ASN1_METHOD const* ameth);

Return Value

1 on success, or 0 if ameth is NULL.

Parameters

NameDescription
ppkey_idOptional; receives the method's EVP_PKEY type NID.
pkey_base_idOptional; receives the base key type NID.
ppkey_flagsOptional; receives ASN1 method flags (ASN1_PKEY_*).
pinfoOptional; receives the human-readable info string, or NULL.
ppem_strOptional; receives the PEM string name used for this key type.
amethASN.1 method to query; must not be NULL.