@@ -59,7 +59,6 @@ fn hi(str: &[u8], salt: &[u8], i: u32) -> GenericArray<u8, U32> {
59
59
enum ChannelBindingInner {
60
60
Unrequested ,
61
61
Unsupported ,
62
- TlsUnique ( Vec < u8 > ) ,
63
62
TlsServerEndPoint ( Vec < u8 > ) ,
64
63
}
65
64
@@ -77,11 +76,6 @@ impl ChannelBinding {
77
76
ChannelBinding ( ChannelBindingInner :: Unsupported )
78
77
}
79
78
80
- /// The server requested channel binding and the client will use the `tls-unique` method.
81
- pub fn tls_unique ( finished : Vec < u8 > ) -> ChannelBinding {
82
- ChannelBinding ( ChannelBindingInner :: TlsUnique ( finished) )
83
- }
84
-
85
79
/// The server requested channel binding and the client will use the `tls-server-end-point`
86
80
/// method.
87
81
pub fn tls_server_end_point ( signature : Vec < u8 > ) -> ChannelBinding {
@@ -92,16 +86,14 @@ impl ChannelBinding {
92
86
match self . 0 {
93
87
ChannelBindingInner :: Unrequested => "y,," ,
94
88
ChannelBindingInner :: Unsupported => "n,," ,
95
- ChannelBindingInner :: TlsUnique ( _) => "p=tls-unique,," ,
96
89
ChannelBindingInner :: TlsServerEndPoint ( _) => "p=tls-server-end-point,," ,
97
90
}
98
91
}
99
92
100
93
fn cbind_data ( & self ) -> & [ u8 ] {
101
94
match self . 0 {
102
95
ChannelBindingInner :: Unrequested | ChannelBindingInner :: Unsupported => & [ ] ,
103
- ChannelBindingInner :: TlsUnique ( ref buf)
104
- | ChannelBindingInner :: TlsServerEndPoint ( ref buf) => buf,
96
+ ChannelBindingInner :: TlsServerEndPoint ( ref buf) => buf,
105
97
}
106
98
}
107
99
}
0 commit comments