cerbero-lib 0.1.0

Kerberos protocol attacker library
1
2
3
4
5
6
7
8
9
10
11
12
use crate::communication::TransportProtocol;
use std::io;
use std::net::IpAddr;

/// Trait implemented by classes which deliver Kerberos messages
pub trait KrbChannel
{
	/// Sends a message and retrieves the response
	fn send_recv(&self, raw: &[u8]) -> io::Result<Vec<u8>>;
	fn protocol(&self) -> TransportProtocol;
	fn ip(&self) -> IpAddr;
}