Skip to content

Commit

Permalink
Bump configuration version and fix enable_iak_idevid
Browse files Browse the repository at this point in the history
The configuration version should've been bumped with the addition of the
IDevID/IAK options, following the templates added for the configuration.

This also fixes the enable_iak_idevid processing as the option is a
boolean which can be copied.

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
  • Loading branch information
ansasaki committed Nov 24, 2023
1 parent 401b00c commit b042bdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion keylime-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# The configuration file version
#
# To override, set KEYLIME_AGENT_VERSION environment variable.
version = "2.0"
version = "2.1"

# The agent's UUID.
# If you set this to "generate", Keylime will create a random UUID.
Expand Down
7 changes: 2 additions & 5 deletions keylime-agent/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,8 @@ impl EnvConfig {
if let Some(ref v) = self.ek_handle {
_ = agent.insert("ek_handle".to_string(), v.to_string().into());
}
if let Some(ref v) = self.enable_iak_idevid {
_ = agent.insert(
"enable_iak_idevid".to_string(),
v.to_string().into(),
);
if let Some(v) = self.enable_iak_idevid {
_ = agent.insert("enable_iak_idevid".to_string(), v.into());
}
if let Some(ref v) = self.iak_idevid_asymmetric_alg {
_ = agent.insert(
Expand Down

0 comments on commit b042bdd

Please sign in to comment.