Rejigger the SSHKey trait a little more cleanly.

This commit is contained in:
2019-04-04 19:51:03 -07:00
parent 68ddc7096b
commit e4f67f0918
4 changed files with 159 additions and 123 deletions

View File

@@ -43,6 +43,13 @@ pub mod ssh;
/// used by TLS and others.
pub mod x509;
pub trait KeyPair {
type Public;
type Private;
fn new(pbl: Self::Public, prv: Self::Private) -> Self;
}
#[cfg(test)]
mod testing;
mod utils;