@@ -13,7 +13,7 @@ use crate::proto::{Error, Result};
1313#[ derive( Clone , PartialEq , Debug ) ]
1414pub struct SignRequest {
1515 /// The public key portion of the [`Identity`](super::Identity) in the agent to sign the data with
16- pub pubkey : PublicCredential ,
16+ pub credential : PublicCredential ,
1717
1818 /// Binary data to be signed
1919 pub data : Vec < u8 > ,
@@ -32,7 +32,7 @@ impl Decode for SignRequest {
3232 let flags = u32:: decode ( reader) ?;
3333
3434 Ok ( Self {
35- pubkey,
35+ credential : pubkey,
3636 data,
3737 flags,
3838 } )
@@ -42,15 +42,15 @@ impl Decode for SignRequest {
4242impl Encode for SignRequest {
4343 fn encoded_len ( & self ) -> ssh_encoding:: Result < usize > {
4444 [
45- self . pubkey . encoded_len_prefixed ( ) ?,
45+ self . credential . encoded_len_prefixed ( ) ?,
4646 self . data . encoded_len ( ) ?,
4747 self . flags . encoded_len ( ) ?,
4848 ]
4949 . checked_sum ( )
5050 }
5151
5252 fn encode ( & self , writer : & mut impl Writer ) -> ssh_encoding:: Result < ( ) > {
53- self . pubkey . encode_prefixed ( writer) ?;
53+ self . credential . encode_prefixed ( writer) ?;
5454 self . data . encode ( writer) ?;
5555 self . flags . encode ( writer) ?;
5656
0 commit comments