[#SSL_CTX_set_cert_cb]
= SSL&lowbar;CTX&lowbar;set&lowbar;cert&lowbar;cb
:mrdocs:

Install a certificate&hyphen;selection callback invoked during handshake certificate setup&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SSL&lowbar;CTX&lowbar;set&lowbar;cert&lowbar;cb(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* c,
    int(* cb)(xref:SSL.adoc[SSL]*, void*),
    void* arg);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| SSL&lowbar;CTX that owns the callback&period;
| *cb*
| Callback that should install certs&sol;keys on `ssl` and return 1 on success, 0 to defer, or &lt;0 on error&period;
| *arg*
| Opaque pointer passed to `cb&period;`
|===


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