Files
rosenpass/wireguard-broker/src/lib.rs
Karolin Varner f3590645e9 feat: First version of broker based WireGuard PSK interface
This allows us to run with minimal priviledges in the Rosenpass process itself
2023-12-09 19:45:18 +01:00

16 lines
248 B
Rust

use std::result::Result;
pub trait WireGuardBroker {
type Error;
fn set_psk(
&mut self,
interface: &str,
peer_id: [u8; 32],
psk: [u8; 32],
) -> Result<(), Self::Error>;
}
pub mod api;
pub mod netlink;