28 lines
680 B
Rust
28 lines
680 B
Rust
#[cfg(windows)]
|
|
#[path = "../../agent/src/https_channel.rs"]
|
|
mod https_channel;
|
|
#[cfg(windows)]
|
|
mod runtime;
|
|
#[cfg(windows)]
|
|
#[path = "../../agent/src/transport.rs"]
|
|
mod transport;
|
|
#[cfg(windows)]
|
|
#[path = "../../agent/src/wire_channel.rs"]
|
|
mod wire_channel;
|
|
#[cfg(windows)]
|
|
mod certificate_rotation {
|
|
pub use rmm_agent_windows::certificate_rotation::DeviceIdentity;
|
|
}
|
|
#[cfg(windows)]
|
|
fn main() {
|
|
if runtime::main().is_err() {
|
|
eprintln!("Windows passive agent stopped: INITIALIZATION_OR_TRANSPORT_FAILURE");
|
|
std::process::exit(1);
|
|
}
|
|
}
|
|
#[cfg(not(windows))]
|
|
fn main() {
|
|
eprintln!("This binary requires native Windows.");
|
|
std::process::exit(1);
|
|
}
|