[#ASN1_TYPE_pack_sequence]
= ASN1&lowbar;TYPE&lowbar;pack&lowbar;sequence
:mrdocs:

Encode a typed structure as a SEQUENCE and store it in an ASN1&lowbar;TYPE&period;

== Synopsis

Declared in `&lt;openssl&sol;asn1&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]*
ASN1&lowbar;TYPE&lowbar;pack&lowbar;sequence(
    xref:ASN1_ITEM.adoc[ASN1&lowbar;ITEM] const* it,
    void* s,
    xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]** t);
----

== Return Value

ASN1&lowbar;TYPE holding the packed SEQUENCE, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *it*
| ASN&period;1 item describing the SEQUENCE type of `s&period;`
| *s*
| Structure instance to encode (type implied by `it)&period;`
| *t*
| Optional destination ASN1&lowbar;TYPE pointer&semi; when non&hyphen;NULL, &ast;`t` is reused or allocated&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
