GENERAL_NAME_get0_value

Return the typed payload pointer stored in a GeneralName.

Synopsis

Declared in <openssl/x509v3.h>

void*
GENERAL_NAME_get0_value(
    GENERAL_NAME const* a,
    int* ptype);

Return Value

Internal value pointer for the current type (do not free), or NULL if unset.

Parameters

NameDescription
aGeneralName to query.
ptypeOptional out-parameter receiving the name form (GEN_*), or NULL to skip.