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

Install a callback that supplies a client certificate during handshake&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;client&lowbar;cert&lowbar;cb(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int(* client&lowbar;cert&lowbar;cb)(xref:SSL.adoc[SSL]*, xref:X509.adoc[X509]**, xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]**));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose connections inherit `client&lowbar;cert&lowbar;cb&period;`
| *client&lowbar;cert&lowbar;cb*
| Callback that sets &ast;`x509` and &ast;`pkey,` or NULL to clear&period;
|===


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