connectAcceptCertificate

fun connectAcceptCertificate(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>, <Error class: unknown class>) -> Boolean): <Error class: unknown class>

Emitted during the @msg's connection TLS handshake after client TLS certificate has been received. You can return true to accept @tls_certificate despite

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: tlsPeerCertificate the peer's #GTlsCertificate; tlsPeerErrors the tls errors of @tls_certificate. Returns true to accept the TLS certificate and stop other handlers from being invoked, or false to propagate the event further.