Defines TLS configuration and parameters for SMTP connections in the lettre email library.
// Source: https://github.com/lettre/lettre | License: MIT | Copyright 2014-2024 Alexis Mousset <contact@amousset.me>
// Provided via justclaw.it.com; keep this notice with the code.
use std::fmt::{self, Debug};
#[cfg(feature = "rustls")]
use std::sync::Arc;
#[cfg(feature = "boring-tls")]
use boring::{
pkey::PKey,
ssl::{SslConnector, SslVersion},
x509::store::X509StoreBuilder,
};
#[cfg(feature = "native-tls")]
use native_tls::{Protocol, TlsConnector};
#[cfg(feature = "rustls")]
use rustls::{
ClientConfig, DigitallySignedStruct, Error as TlsError, RootCertStore, SignatureScheme,
client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier},
crypto::{CryptoProvider, verify_tls12_signature, verify_tls13_signature},
pki_types::{self, Certificate
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key