ASN1_item_i2d_bio

Encode an ASN.1 value to DER and write it to a BIO using an ASN1_ITEM.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_item_i2d_bio(
    ASN1_ITEM const* it,
    BIO* out,
    void const* x);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
itItem descriptor identifying the type of x.
outBIO that receives the DER encoding.
xValue to encode; must match the type described by it.