summaryrefslogtreecommitdiff
path: root/src/agent.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-09-18 13:17:24 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-09-18 13:17:24 -0700
commitc95e6ea1e74f82f1a889302978e37a7baf4073cf (patch)
tree4c09a436ede27b29c712e7151cc17917cd3a9e4f /src/agent.rs
parent547e6c2679e8c686a51367b95a2bab272c51beb0 (diff)
downloadssh2-rs-c95e6ea1e74f82f1a889302978e37a7baf4073cf.zip
Split things up and write some docs
Diffstat (limited to 'src/agent.rs')
-rw-r--r--src/agent.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/agent.rs b/src/agent.rs
index 5cc5fb6..e96f5c8 100644
--- a/src/agent.rs
+++ b/src/agent.rs
@@ -127,23 +127,3 @@ impl<'a> PublicKey<'a> {
/// Gain access to the underlying raw pointer
pub fn raw(&self) -> *mut raw::libssh2_agent_publickey { self.raw }
}
-
-#[cfg(test)]
-mod tests {
- use Session;
-
- #[test]
- fn smoke() {
- let sess = Session::new().unwrap();
- let mut agent = sess.agent().unwrap();
- agent.connect().unwrap();
- agent.list_identities().unwrap();
- {
- let mut a = agent.identities();
- let i1 = a.next().unwrap().unwrap();
- a.count();
- assert!(agent.userauth("foo", &i1).is_err());
- }
- agent.disconnect().unwrap();
- }
-}