BadCertificateCallback typedef

BadCertificateCallback = bool Function(X509Certificate, String host, int port)

Callback for VM clients when an SSL handshake fails due to an untrusted certificate chain.

Returning true allows the connection proceed regardless.

Implementation

typedef BadCertificateCallback = bool Function(
  X509Certificate,
  String host,
  int port,
);