mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
Add CertificateChecks::Automatic option and make it default
It is the same as AcceptInvalidCertificates for now, but can be replaced with better heuristics later, such as a database of known providers or TOFU.
This commit is contained in:
@@ -7,6 +7,7 @@ use crate::error::Error;
|
||||
#[derive(Debug, FromPrimitive)]
|
||||
#[repr(i32)]
|
||||
pub enum CertificateChecks {
|
||||
Automatic,
|
||||
Strict,
|
||||
AcceptInvalidHostnames,
|
||||
AcceptInvalidCertificates,
|
||||
@@ -14,7 +15,7 @@ pub enum CertificateChecks {
|
||||
|
||||
impl Default for CertificateChecks {
|
||||
fn default() -> Self {
|
||||
Self::AcceptInvalidCertificates
|
||||
Self::Automatic
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user