File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,13 @@ fn is_file_checked(file_path: &Path) -> bool {
3434/// Check the security of a file.
3535///
3636/// # Arguments
37- ///
3837/// * `file_path` - The path to the file to check.
3938///
4039/// # Returns
41- ///
4240/// * `Ok(())` if the file passes the security checks.
4341/// * `Err(DscError)` if the file fails the security checks.
4442///
4543/// # Errors
46- ///
4744/// This function will return an error if the Authenticode check fails on Windows.
4845#[ cfg( windows) ]
4946pub fn check_file_security ( file_path : & Path ) -> Result < ( ) , DscError > {
@@ -52,6 +49,15 @@ pub fn check_file_security(file_path: &Path) -> Result<(), DscError> {
5249}
5350
5451/// On non-Windows platforms, this function is a no-op.
52+ ///
53+ /// # Arguments
54+ /// * `_file_path` - The path to the file to check.
55+ ///
56+ /// # Returns
57+ /// * `Ok(())` always, as there are no security checks on non-Windows platforms.
58+ ///
59+ /// # Errors
60+ /// This function does not return any errors on non-Windows platforms.
5561#[ cfg( not( windows) ) ]
5662pub fn check_file_security ( _file_path : & Path ) -> Result < ( ) , DscError > {
5763 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments