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

Name

Description

it

Item descriptor identifying the type of x.

out

BIO that receives the DER encoding.

x

Value to encode; must match the type described by it.

Created with MrDocs