SILC_ASN1_SEQUENCE_OF
SYNOPSIS
Decoding: SILC_ASN1_SEQUENCE_OF(bufarray, numbufs)
DESCRIPTION
Macro used to decode sequence of specified type. This returns an array of SilcBuffers and number of buffers in the array. The SILC_ASN1_CHOICE macro may also be used with this macro.
NOTES
This macro must be used either with SILC_ASN1_ALLOC or SILC_ASN1_ACCUMUL flags. Do not use this macro without flags.
EXAMPLE
SilcBuffer bufs; SilcUInt32 count; // Decode sequence of sequences. Each returned buffer in the array // is a sequence. silc_asn1_decode(asn1, exts, SILC_ASN1_OPTS(SILC_ASN1_ACCUMUL), SILC_ASN1_SEQUENCE_OF(&bufs, &count), SILC_ASN1_TAG_SEQUENCE, SILC_ASN1_END, SILC_ASN1_END);