GENERAL_NAME_get0_otherName

Retrieve the OID and typed value from a GeneralName of type otherName.

Synopsis

Declared in <openssl/x509v3.h>

int
GENERAL_NAME_get0_otherName(
    GENERAL_NAME const* gen,
    ASN1_OBJECT** poid,
    ASN1_TYPE** pvalue);

Return Value

1 if gen is GEN_OTHERNAME, or 0 otherwise.

Parameters

NameDescription
genGeneralName to query.
poidOptional output for the otherName type OID (not duplicated).
pvalueOptional output for the otherName ASN1_TYPE value (not duplicated).