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

Name

Description

ppkey_id

Optional; receives the method's EVP_PKEY type NID.

pkey_base_id

Optional; receives the base key type NID.

ppkey_flags

Optional; receives ASN1 method flags (ASN1_PKEY_*).

pinfo

Optional; receives the human‐readable info string, or NULL.

ppem_str

Optional; receives the PEM string name used for this key type.

ameth

ASN.1 method to query; must not be NULL.

Created with MrDocs