Encode an ASN.1 item to DER and write the encoding to a FILE stream.
Declared in <openssl/asn1.h>
int
ASN1_item_i2d_fp(
ASN1_ITEM const* it,
FILE* out,
void const* x);
1 on success, or 0 on failure.
| 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). |