rust/pvimg: Fix spelling of Enforcement

Fix spelling of CckExtensionSecretEnforcement and adhere to Rust
capitalisation conventions.

Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jakob Naucke <naucke@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Jakob Naucke
2025-01-15 17:08:43 +01:00
committed by Jan Höppner
parent efdadfcdb9
commit 8b9960abe9
2 changed files with 3 additions and 3 deletions

View File

@@ -92,12 +92,12 @@ fn parse_flags(
lf.disable_cck_extension_secret
.filter(|x| *x)
.and(Some(ScfV1::all_disabled([
ScfV1::CCKExtensionSecretEnforcment,
ScfV1::CckExtensionSecretEnforcement,
]))),
lf.enable_cck_extension_secret
.filter(|x| *x)
.and(Some(ScfV1::all_enabled([
ScfV1::CCKExtensionSecretEnforcment,
ScfV1::CckExtensionSecretEnforcement,
]))),
]
.into_iter()

View File

@@ -204,7 +204,7 @@ impl ControlFlagTrait for PcfV1 {}
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub enum ScfV1 {
/// All add-secret requests must provide an extension secret
CCKExtensionSecretEnforcment = 1,
CckExtensionSecretEnforcement = 1,
}
pub type SecretControlFlagsV1 = ControlFlags<ScfV1>;
impl ControlFlagTrait for ScfV1 {}