Skip to main content

gate4agent_node_wire/
lib.rs

1//! Reusable local wire client and authentication primitives for Gate4Agent nodes.
2
3mod auth;
4mod call_home;
5mod client;
6#[cfg(windows)]
7mod windows_secure_pipe;
8#[cfg(unix)]
9mod unix_secure_socket;
10
11pub use auth::{
12    auth_proof, local_hmac_sha256, negotiated_auth_proof, proofs_match, random_incarnation_id,
13    random_nonce, AuthDirection,
14};
15pub use call_home::{read_call_home_announce, write_call_home_announce, CallHomeAnnounceError};
16pub use client::{
17    LocalNodeClient, LocalSessionHarnessMcpClient, LocalSessionHarnessMcpError, NodeClientError,
18    NodeClientStream,
19};
20#[cfg(windows)]
21pub type NamedPipeNodeClient = LocalNodeClient;
22#[cfg(windows)]
23pub use windows_secure_pipe::{
24    connect_local_stream, LocalClientStream, LocalServerStream, OwnerOnlyLocalListener,
25};
26#[cfg(unix)]
27pub use unix_secure_socket::{
28    connect_local_stream, LocalClientStream, LocalServerStream, OwnerOnlyLocalListener,
29};