[#BIO_asn1_set_suffix]
= BIO&lowbar;asn1&lowbar;set&lowbar;suffix
:mrdocs:

Install suffix encode&sol;free callbacks on a BIO&lowbar;f&lowbar;asn1() filter BIO&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;asn1&lowbar;set&lowbar;suffix(
    xref:BIO.adoc[BIO]* b,
    xref:asn1_ps_func.adoc[asn1&lowbar;ps&lowbar;func]* suffix,
    xref:asn1_ps_func.adoc[asn1&lowbar;ps&lowbar;func]* suffix&lowbar;free);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *b*
| ASN&period;1 filter BIO to configure&period;
| *suffix*
| Callback that writes suffix octets after each ASN&period;1 item, or NULL&period;
| *suffix&lowbar;free*
| Optional cleanup for suffix state, or NULL&period;
|===


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