BIO_asn1_set_prefix

Install prefix encode/free callbacks on a BIO_f_asn1() filter BIO.

Synopsis

Declared in <openssl/bio.h>

int
BIO_asn1_set_prefix(
    BIO* b,
    asn1_ps_func* prefix,
    asn1_ps_func* prefix_free);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
bASN.1 filter BIO to configure.
prefixCallback that writes prefix octets before each ASN.1 item, or NULL.
prefix_freeOptional cleanup for prefix state, or NULL.