@@ -12,8 +12,8 @@ use ssh_agent_lib::agent::{listen, Session};
1212use ssh_agent_lib:: error:: AgentError ;
1313use ssh_agent_lib:: proto:: extension:: { QueryResponse , RestrictDestination , SessionBind } ;
1414use ssh_agent_lib:: proto:: {
15- message, signature, AddIdentity , AddIdentityConstrained , AddSmartcardKeyConstrained ,
16- Credential , Extension , KeyConstraint , RemoveIdentity , SignRequest , SmartcardKey ,
15+ message, signature, AddIdentity , AddIdentityConstrained , AddSmartcardKeyConstrained , Extension ,
16+ KeyConstraint , PrivateCredential , RemoveIdentity , SignRequest , SmartcardKey ,
1717} ;
1818use ssh_key:: {
1919 private:: { KeypairData , PrivateKey } ,
@@ -121,7 +121,7 @@ impl Session for KeyStorage {
121121 }
122122
123123 async fn add_identity ( & mut self , identity : AddIdentity ) -> Result < ( ) , AgentError > {
124- if let Credential :: Key { privkey, comment } = identity. credential {
124+ if let PrivateCredential :: Key { privkey, comment } = identity. credential {
125125 let privkey = PrivateKey :: try_from ( privkey) . map_err ( AgentError :: other) ?;
126126 self . identity_add ( Identity {
127127 pubkey : PublicKey :: from ( & privkey) ,
@@ -152,7 +152,7 @@ impl Session for KeyStorage {
152152 info ! ( "Destination constraint: {destination:?}" ) ;
153153 }
154154
155- if let Credential :: Key { privkey, comment } = identity. credential . clone ( ) {
155+ if let PrivateCredential :: Key { privkey, comment } = identity. credential . clone ( ) {
156156 let privkey = PrivateKey :: try_from ( privkey) . map_err ( AgentError :: other) ?;
157157 self . identity_add ( Identity {
158158 pubkey : PublicKey :: from ( & privkey) ,
0 commit comments