|
SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
|
#include <SharkSSL.h>
Data Fields | |
| int(* | verify )(void *arg, const SharkSslCertInfo *leaf, U8 trustedCA) |
| Inspect the borrowed, read-only leaf and its parents during this call. More... | |
| void * | arg |
| Application context passed to verify. More... | |
Application-owned policy for a presented peer chain, called synchronously after native chain checks and before the handshake advances.
A missing trust anchor is reported in trustedCA. Returning zero sends a fatal bad_certificate alert. Returning nonzero continues the handshake with the original CA trust result. Signature and subsequent TLS checks still apply. An empty Certificate message or a resumed handshake without a Certificate message does not invoke this hook.
| void* SharkSslCertVerifyHook::arg |
Application context passed to verify.
| int(* SharkSslCertVerifyHook::verify) (void *arg, const SharkSslCertInfo *leaf, U8 trustedCA) |
Inspect the borrowed, read-only leaf and its parents during this call.
Do not perform recursive I/O, free the connection, or retain chain pointers.