cli/
lib.rs

1// SPDX-License-Identifier: GPL-3-0-or-later
2// Copyright (c) 2025 Opinsys Oy
3// Copyright (c) 2024-2025 Jarkko Sakkinen
4
5#![deny(clippy::all)]
6#![deny(clippy::pedantic)]
7
8pub mod cli;
9pub mod command;
10pub mod context;
11pub mod convert;
12pub mod crypto;
13pub mod device;
14pub mod key;
15pub mod pcr;
16pub mod policy;
17pub mod print;
18pub mod session;
19pub mod template;
20pub mod transport;
21pub mod uri;
22pub mod x509;
23
24/// A global flag to signal graceful teardown of the application.
25///
26/// Set by the Ctrl-C handler to allow the main loop to finish its current
27/// operation and perform necessary teardown (e.g., flushing TPM contexts)
28/// before exiting.
29pub static TEARDOWN: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false);