[#SSL_CTX_set_ct_validation_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;ct&lowbar;validation&lowbar;callback
:mrdocs:

Register a Certificate Transparency validation callback for an SSL context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;set&lowbar;ct&lowbar;validation&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:ssl_ct_validation_cb.adoc[ssl&lowbar;ct&lowbar;validation&lowbar;cb] callback,
    void* arg);
----

== Return Value

1 on success, or 0 on failure (e&period;g&period; conflicting SCT custom extension)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose connections inherit `callback&period;`
| *callback*
| SCT policy callback, or NULL to disable CT validation&period;
| *arg*
| Opaque userdata passed to `callback` on each invocation&period;
|===


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