mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
net: Add an SSL verification callback to support checking a dynamic list of certs.
This commit is contained in:
parent
b7a640b517
commit
1cdaf40eb2
3 changed files with 60 additions and 11 deletions
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use crate::connector::{create_tls_config, ALPN_H1};
|
||||
use crate::connector::{create_tls_config, ExtraCerts, ALPN_H1};
|
||||
use crate::cookie::Cookie;
|
||||
use crate::fetch::methods::should_be_blocked_due_to_bad_port;
|
||||
use crate::hosts::replace_host;
|
||||
|
@ -167,7 +167,7 @@ impl<'a> Handler for Client<'a> {
|
|||
WebSocketErrorKind::Protocol,
|
||||
format!("Unable to parse domain from {}. Needed for SSL.", url),
|
||||
))?;
|
||||
let tls_config = create_tls_config(&certs, ALPN_H1);
|
||||
let tls_config = create_tls_config(&certs, ALPN_H1, ExtraCerts::new());
|
||||
tls_config
|
||||
.build()
|
||||
.connect(domain, stream)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue