mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Add ALPN and signature algorithms to OpenSSL config
This commit is contained in:
parent
69c7595a57
commit
b811be764c
7 changed files with 74 additions and 66 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_ssl_connector_builder;
|
||||
use crate::connector::{create_tls_config, ALPN_H1};
|
||||
use crate::cookie::Cookie;
|
||||
use crate::fetch::methods::should_be_blocked_due_to_bad_port;
|
||||
use crate::hosts::replace_host;
|
||||
|
@ -167,8 +167,9 @@ impl<'a> Handler for Client<'a> {
|
|||
WebSocketErrorKind::Protocol,
|
||||
format!("Unable to parse domain from {}. Needed for SSL.", url),
|
||||
))?;
|
||||
let connector = create_ssl_connector_builder(&certs).build();
|
||||
connector
|
||||
let tls_config = create_tls_config(&certs, ALPN_H1);
|
||||
tls_config
|
||||
.build()
|
||||
.connect(domain, stream)
|
||||
.map_err(WebSocketError::from)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue