BadCertHandlerType typedef

BadCertHandlerType = bool Function(X509Certificate cert)

Callback function type for handling bad certificates.

The function should return true to accept the certificate (and the security consequences of doing so) or false to reject it (and not establish the SSL/TLS connection).

Implementation

typedef BadCertHandlerType = bool Function(X509Certificate cert);