Skip to content

Commit 0c9166d

Browse files
committed
Make new clippy happy
1 parent 4b5ef5e commit 0c9166d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

boring/src/ssl/connector.rs

-7
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ impl SslAcceptor {
221221
ctx.set_options(SslOptions::NO_TLSV1 | SslOptions::NO_TLSV1_1);
222222
let dh = Dh::params_from_pem(FFDHE_2048.as_bytes())?;
223223
ctx.set_tmp_dh(&dh)?;
224-
setup_curves(&mut ctx)?;
225224
ctx.set_cipher_list(
226225
"ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:\
227226
ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:\
@@ -244,7 +243,6 @@ impl SslAcceptor {
244243
ctx.set_options(SslOptions::NO_TLSV1_3);
245244
let dh = Dh::params_from_pem(FFDHE_2048.as_bytes())?;
246245
ctx.set_tmp_dh(&dh)?;
247-
setup_curves(&mut ctx)?;
248246
ctx.set_cipher_list(
249247
"ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:\
250248
ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:\
@@ -271,7 +269,6 @@ impl SslAcceptor {
271269
SslOptions::CIPHER_SERVER_PREFERENCE | SslOptions::NO_TLSV1 | SslOptions::NO_TLSV1_1,
272270
);
273271
ctx.set_options(SslOptions::NO_TLSV1_3);
274-
setup_curves(&mut ctx)?;
275272
ctx.set_cipher_list(
276273
"ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:\
277274
ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:\
@@ -324,10 +321,6 @@ impl DerefMut for SslAcceptorBuilder {
324321
}
325322
}
326323

327-
fn setup_curves(_: &mut SslContextBuilder) -> Result<(), ErrorStack> {
328-
Ok(())
329-
}
330-
331324
fn setup_verify(ctx: &mut SslContextBuilder) {
332325
ctx.set_verify(SslVerifyMode::PEER);
333326
}

0 commit comments

Comments
 (0)