BIO_new_NDEF

Create a streaming BIO that encodes val in indefinite-length (NDEF) DER form.

Synopsis

Declared in <openssl/asn1.h>

BIO*
BIO_new_NDEF(
    BIO* out,
    ASN1_VALUE* val,
    ASN1_ITEM const* it);

Description

Used for CMS/SMIME streaming; cannot constify val because of CMS_stream().

Return Value

New filter BIO chained to out, or NULL on error.

Parameters

NameDescription
outDownstream BIO that receives the encoded output.
valASN.1 value to stream-encode (not const because streaming may update state).
itASN.1 item descriptor for val.