DAB-Co / jam-mobile

Mobile Flutter App of Jam
1 stars 0 forks source link

add ca to prevent middleman #53

Closed DBC201 closed 2 years ago

DBC201 commented 2 years ago
/// The security context for secure usage
SecurityContext securityContext = SecurityContext.defaultContext;

/// Callback function to handle bad certificate. if true, ignore the error.
bool Function(X509Certificate certificate)? onBadCertificate;
DBC201 commented 2 years ago

this function is predefined, no need to define again