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

Name

Description

out

Downstream BIO that receives the encoded output.

val

ASN.1 value to stream‐encode (not const because streaming may update state).

it

ASN.1 item descriptor for val.

Created with MrDocs