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 {
34
34
/// Check the security of a file.
35
35
///
36
36
/// # Arguments
37
- ///
38
37
/// * `file_path` - The path to the file to check.
39
38
///
40
39
/// # Returns
41
- ///
42
40
/// * `Ok(())` if the file passes the security checks.
43
41
/// * `Err(DscError)` if the file fails the security checks.
44
42
///
45
43
/// # Errors
46
- ///
47
44
/// This function will return an error if the Authenticode check fails on Windows.
48
45
#[ cfg( windows) ]
49
46
pub fn check_file_security ( file_path : & Path ) -> Result < ( ) , DscError > {
@@ -52,6 +49,15 @@ pub fn check_file_security(file_path: &Path) -> Result<(), DscError> {
52
49
}
53
50
54
51
/// 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.
55
61
#[ cfg( not( windows) ) ]
56
62
pub fn check_file_security ( _file_path : & Path ) -> Result < ( ) , DscError > {
57
63
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments