[#SSL_CTX_set_cert_verify_callback] = SSL_CTX_set_cert_verify_callback :mrdocs: Replace the built‐in peer certificate verification procedure with an application callback. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void SSL_CTX_set_cert_verify_callback( xref:SSL_CTX.adoc[SSL_CTX]* ctx, int(* cb)(xref:X509_STORE_CTX.adoc[X509_STORE_CTX]*, void*), void* arg); ---- == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | SSL context; SSL objects created from it inherit `cb` and `arg` at SSL_new time. | *cb* | Verification callback receiving the X509_STORE_CTX and `arg;` return 1 to accept, 0 to fail; NULL restores the default. | *arg* | Application pointer passed to `cb` on each invocation. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#