[#OSSL_CMP_SRV_CTX_init_trans]
= OSSL&lowbar;CMP&lowbar;SRV&lowbar;CTX&lowbar;init&lowbar;trans
:mrdocs:

Register delayed&hyphen;delivery and transaction&hyphen;cleanup callbacks on a server context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;SRV&lowbar;CTX&lowbar;init&lowbar;trans(
    xref:OSSL_CMP_SRV_CTX.adoc[OSSL&lowbar;CMP&lowbar;SRV&lowbar;CTX]* srv&lowbar;ctx,
    xref:OSSL_CMP_SRV_delayed_delivery_cb_t.adoc[OSSL&lowbar;CMP&lowbar;SRV&lowbar;delayed&lowbar;delivery&lowbar;cb&lowbar;t] delay,
    xref:OSSL_CMP_SRV_clean_transaction_cb_t.adoc[OSSL&lowbar;CMP&lowbar;SRV&lowbar;clean&lowbar;transaction&lowbar;cb&lowbar;t] clean);
----

== Return Value

1 on success, 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *srv&lowbar;ctx*
| Server context&period;
| *delay*
| Optional callback deciding whether to delay response delivery&period;
| *clean*
| Optional callback invoked when a transaction is finished&period;
|===


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