@@ -334,8 +334,16 @@ pub enum Protocol {
334
334
/// you are not sure if you need to enable this protocol, you should not.
335
335
Sslv3 ,
336
336
/// The TLS 1.0 protocol.
337
+ ///
338
+ /// # Warning
339
+ ///
340
+ /// Deprecated in 2021 (RFC 8996)
337
341
Tlsv10 ,
338
342
/// The TLS 1.1 protocol.
343
+ ///
344
+ /// # Warning
345
+ ///
346
+ /// Deprecated in 2021 (RFC 8996)
339
347
Tlsv11 ,
340
348
/// The TLS 1.2 protocol.
341
349
Tlsv12 ,
@@ -368,7 +376,7 @@ impl TlsConnectorBuilder {
368
376
///
369
377
/// A value of `None` enables support for the oldest protocols supported by the implementation.
370
378
///
371
- /// Defaults to `Some(Protocol::Tlsv10 )`.
379
+ /// Defaults to `Some(Protocol::Tlsv12 )`.
372
380
pub fn min_protocol_version ( & mut self , protocol : Option < Protocol > ) -> & mut TlsConnectorBuilder {
373
381
self . min_protocol = protocol;
374
382
self
@@ -494,7 +502,7 @@ impl TlsConnector {
494
502
pub fn builder ( ) -> TlsConnectorBuilder {
495
503
TlsConnectorBuilder {
496
504
identity : None ,
497
- min_protocol : Some ( Protocol :: Tlsv10 ) ,
505
+ min_protocol : Some ( Protocol :: Tlsv12 ) ,
498
506
max_protocol : None ,
499
507
root_certificates : vec ! [ ] ,
500
508
use_sni : true ,
@@ -545,7 +553,7 @@ impl TlsAcceptorBuilder {
545
553
///
546
554
/// A value of `None` enables support for the oldest protocols supported by the implementation.
547
555
///
548
- /// Defaults to `Some(Protocol::Tlsv10 )`.
556
+ /// Defaults to `Some(Protocol::Tlsv12 )`.
549
557
pub fn min_protocol_version ( & mut self , protocol : Option < Protocol > ) -> & mut TlsAcceptorBuilder {
550
558
self . min_protocol = protocol;
551
559
self
@@ -623,7 +631,7 @@ impl TlsAcceptor {
623
631
pub fn builder ( identity : Identity ) -> TlsAcceptorBuilder {
624
632
TlsAcceptorBuilder {
625
633
identity,
626
- min_protocol : Some ( Protocol :: Tlsv10 ) ,
634
+ min_protocol : Some ( Protocol :: Tlsv12 ) ,
627
635
max_protocol : None ,
628
636
}
629
637
}
0 commit comments