ASN1_item_i2d_fp

Encode an ASN.1 item to DER and write the encoding to a FILE stream.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_item_i2d_fp(
    ASN1_ITEM const* it,
    FILE* out,
    void const* x);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
itASN.1 item descriptor for the type of x.
outOutput stream that receives the DER encoding.
xValue to encode (type implied by it).