fix: finally, async-trait works

This commit is contained in:
DarkCat09 2024-08-21 16:01:21 +04:00
parent e042a139bf
commit 49c46aeaf5
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82
3 changed files with 10 additions and 6 deletions

View file

@ -17,9 +17,9 @@ pub use tokio_rustls::rustls::pki_types::{CertificateDer, ServerName, UnixTime};
/// It is recommended to use helpers from file_sscv.
#[async_trait]
pub trait SelfsignedCertVerifier: Send + Sync {
async fn verify<'c>(
async fn verify(
&self,
cert: &'c CertificateDer<'c>,
cert: &CertificateDer<'_>,
host: &str,
port: u16,
// now: UnixTime,