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

Name

Description

it

ASN.1 item descriptor for the type of x.

out

Output stream that receives the DER encoding.

x

Value to encode (type implied by it).

Created with MrDocs