fix: finally, async-trait works
This commit is contained in:
parent
e042a139bf
commit
49c46aeaf5
3 changed files with 10 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue