馃 The Definitive Gemini Protocol Toolkit
gemini
gemini-protocol
gemtext
parser
zero-dependency
toolkit
ast
converter
html
markdown
cli
networking
1use {
2 rustls::{
3 Certificate,
4 client::{self, ServerCertVerified},
5 },
6 std::time::SystemTime,
7};
8
9#[allow(clippy::module_name_repetitions)]
10pub struct GermVerifier;
11
12impl GermVerifier {
13 pub const fn new() -> Self { Self {} }
14}
15
16impl client::ServerCertVerifier for GermVerifier {
17 fn verify_server_cert(
18 &self,
19 _end_entity: &Certificate,
20 _intermediates: &[Certificate],
21 _server_name: &client::ServerName,
22 _scts: &mut dyn Iterator<Item = &[u8]>,
23 _ocsp_response: &[u8],
24 _now: SystemTime,
25 ) -> Result<ServerCertVerified, rustls::Error> {
26 Ok(ServerCertVerified::assertion())
27 }
28}