ASN1_i2d_bio

Encode an ASN.1 value to a BIO using a type-specific i2d function.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_i2d_bio(
    i2d_of_void* i2d,
    BIO* out,
    void const* x);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
i2dEncoder such as i2d_X509 (passed through CHECKED_I2D_OF helpers).
outBIO that receives the DER encoding.
xObject to encode; must match the type expected by i2d.