-
Notifications
You must be signed in to change notification settings - Fork 4
/
lib.rs
62 lines (58 loc) · 1.86 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! Asynchronous SSH client library in pure Rust.
//!
//! You may want to **[read the tutorial][tutorial]** to get started with Makiko.
//!
//! [tutorial]: https://honzasp.github.io/makiko/tutorial
//!
//! - Entry point for making SSH connections is the [`Client`].
//! - Functions for decoding keys are in the [`keys`] module.
//! - Support for the `known_hosts` file is in the [`host_file`] module.
//!
#![allow(clippy::box_default)]
#![allow(clippy::collapsible_if)]
#![allow(clippy::unused_unit)]
#![allow(clippy::unit_arg)]
#![allow(clippy::module_inception)]
#![allow(clippy::type_complexity)]
#![warn(missing_docs)]
pub use crate::client::{
AuthFailure, AuthNoneResult, AuthPasswordResult, AuthPasswordPrompt, AuthPubkeyResult,
};
pub use crate::client::{
Channel, ChannelReceiver, ChannelEvent, ChannelReq, ChannelReply, ChannelConfig,
DataType, DATA_STANDARD, DATA_STDERR,
};
pub use crate::client::{Client, ClientResp, ClientFuture, ClientConfig, GlobalReq, GlobalReply};
pub use crate::client::{
ClientReceiver, ClientEvent, AcceptPubkey, DebugMsg, AuthBanner, AcceptTunnel, AcceptChannel,
};
pub use crate::client::{
Session, SessionReceiver, SessionEvent, SessionResp, ExitSignal,
PtyRequest, PtyTerminalModes, WindowChange,
};
pub use crate::client::{Tunnel, TunnelReceiver, TunnelEvent};
pub use crate::codec::{PacketEncode, PacketDecode};
pub use crate::error::{Result, Error, AlgoNegotiateError, DisconnectError, ChannelOpenError};
pub use self::cipher::CipherAlgo;
pub use self::kex::KexAlgo;
pub use self::mac::MacAlgo;
pub use self::pubkey::{PubkeyAlgo, Pubkey, Privkey};
pub use bytes;
pub use ecdsa;
pub use ecdsa::elliptic_curve;
pub use ed25519_dalek;
pub use p256;
pub use p384;
pub use pem;
pub use rsa;
pub mod cipher;
mod client;
mod codec;
pub mod codes;
mod error;
pub mod host_file;
pub mod kex;
pub mod keys;
pub mod mac;
pub mod pubkey;
mod util;