rustls-rustcrypto 0.0.2-alpha

Pure Rust cryptography provider for the Rustls TLS library using algorithm implementations from the RustCrypto organization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::sync::Arc;

use rustls::server::ClientHello;

use rustls::server::ResolvesServerCert;
use rustls::sign::CertifiedKey;

#[derive(Debug)]
pub struct FakeServerCertResolver;

impl ResolvesServerCert for FakeServerCertResolver {
    fn resolve(&self, _client_hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>> {
        None
    }
}