OSSL_DECODER_CTX_set_input_structure

Set the expected ASN.1 structure name for the encoded input.

Synopsis

Declared in <openssl/decoder.h>

int
OSSL_DECODER_CTX_set_input_structure(
    OSSL_DECODER_CTX* ctx,
    char const* input_structure);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxDecoder context to configure.
input_structureStructure name (for example "EncryptedPrivateKeyInfo"), or NULL.