| 25 | |
| 26 | #[derive(Debug, Clone, PartialEq, Eq)] |
| 27 | pub struct AuthAttempt { |
| 28 | pub outcome: AuthOutcome, |
| 29 | pub username: String, |
| 30 | pub source_ip: String, |
| 31 | pub source_port: Option<u16>, |
| 32 | } |
| 33 | |
| 34 | static RE_ACCEPTED: Lazy<Regex> = Lazy::new(|| { |
| 35 | Regex::new(r"^Accepted (publickey|password|keyboard-interactive|\S+) for (\S+) from (\S+) port (\d+)") |
nothing calls this directly
no outgoing calls
no test coverage detected