mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-27 22:13:12 -08:00
16 lines
248 B
Rust
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;
|