mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 14:36:15 -05:00
feat: collect native HIP facts and log redacted XML responses
This commit is contained in:
26 files changed
+1567
-206
No files matched your search
@@ -0,0 +1,12 @@
|
||||
//! Generate native Windows posture on Windows, or a Windows emulation preview elsewhere.
|
||||
use gpapi::os_profile::{ClientOs, OsProfile};
|
||||
use gphip::{ReportContext, ReportInput};
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let input = ReportInput {
|
||||
profile: gpapi::os_profile::desktop::collect_profile(OsProfile::builder(ClientOs::Windows), None),
|
||||
context: ReportContext::Preview,
|
||||
};
|
||||
println!("{}", gphip::generate_report(&input)?);
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user