mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 20:45:29 +00:00
Update to rustls 0.22
This commit is contained in:
parent
b1c7564046
commit
8809f9378c
5 changed files with 52 additions and 75 deletions
|
|
@ -408,13 +408,9 @@ static TLS: Lazy<TlsAcceptor> = Lazy::new(acceptor);
|
|||
|
||||
fn acceptor() -> TlsAcceptor {
|
||||
let config = if ARGS.only_tls13 {
|
||||
ServerConfig::builder()
|
||||
.with_safe_default_cipher_suites()
|
||||
.with_safe_default_kx_groups()
|
||||
.with_protocol_versions(&[&rustls::version::TLS13])
|
||||
.expect("could not build server config")
|
||||
ServerConfig::builder_with_protocol_versions(&[&rustls::version::TLS13])
|
||||
} else {
|
||||
ServerConfig::builder().with_safe_defaults()
|
||||
ServerConfig::builder()
|
||||
}
|
||||
.with_no_client_auth()
|
||||
.with_cert_resolver(ARGS.certs.clone());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue