@@ -122,7 +122,7 @@ impl<T, C> Future for Handshake<T, C> {
122122/// ```
123123pub fn rt1_initiator < T , C > (
124124 io : T ,
125- session : Result < snow:: Session , NoiseError > ,
125+ session : Result < snow:: HandshakeState , NoiseError > ,
126126 identity : KeypairIdentity ,
127127 identity_x : IdentityExchange
128128) -> Handshake < T , C >
@@ -156,7 +156,7 @@ where
156156/// ```
157157pub fn rt1_responder < T , C > (
158158 io : T ,
159- session : Result < snow:: Session , NoiseError > ,
159+ session : Result < snow:: HandshakeState , NoiseError > ,
160160 identity : KeypairIdentity ,
161161 identity_x : IdentityExchange ,
162162) -> Handshake < T , C >
@@ -192,7 +192,7 @@ where
192192/// ```
193193pub fn rt15_initiator < T , C > (
194194 io : T ,
195- session : Result < snow:: Session , NoiseError > ,
195+ session : Result < snow:: HandshakeState , NoiseError > ,
196196 identity : KeypairIdentity ,
197197 identity_x : IdentityExchange
198198) -> Handshake < T , C >
@@ -229,7 +229,7 @@ where
229229/// ```
230230pub fn rt15_responder < T , C > (
231231 io : T ,
232- session : Result < snow:: Session , NoiseError > ,
232+ session : Result < snow:: HandshakeState , NoiseError > ,
233233 identity : KeypairIdentity ,
234234 identity_x : IdentityExchange
235235) -> Handshake < T , C >
@@ -363,7 +363,7 @@ where
363363
364364 let mut payload_buf = vec ! [ 0 ; len] ;
365365 state. io . read_exact ( & mut payload_buf) . await ?;
366- let pb: payload :: Identity = protobuf:: parse_from_bytes ( & payload_buf) ?;
366+ let pb: payload_proto :: Identity = protobuf:: parse_from_bytes ( & payload_buf) ?;
367367
368368 if !pb. pubkey . is_empty ( ) {
369369 let pk = identity:: PublicKey :: from_protobuf_encoding ( pb. get_pubkey ( ) )
@@ -387,7 +387,7 @@ async fn send_identity<T>(state: &mut State<T>) -> Result<(), NoiseError>
387387where
388388 T : AsyncWrite + Unpin ,
389389{
390- let mut pb = payload :: Identity :: new ( ) ;
390+ let mut pb = payload_proto :: Identity :: new ( ) ;
391391 if state. send_identity {
392392 pb. set_pubkey ( state. identity . public . clone ( ) . into_protobuf_encoding ( ) ) ;
393393 }
0 commit comments