ASN1_i2d_fp

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

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_i2d_fp(
    i2d_of_void* i2d,
    FILE* out,
    void const* x);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
i2dEncoder such as i2d_X509.
outOutput FILE that receives the DER encoding.
xObject to encode; must match the type expected by i2d.