File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ use std::{
10
10
path:: Path ,
11
11
ptr:: { from_ref, null_mut} ,
12
12
} ;
13
- #[ cfg( windows) ]
14
13
use std:: os:: windows:: ffi:: OsStrExt ;
15
- #[ cfg( windows) ]
16
14
use windows:: {
17
15
core:: { PCWSTR , PWSTR , GUID } ,
18
16
Win32 :: {
@@ -34,7 +32,6 @@ use windows::{
34
32
}
35
33
}
36
34
} ;
37
- #[ cfg( windows) ]
38
35
use windows_result:: HRESULT ;
39
36
40
37
/// Check the Authenticode signature of a file.
@@ -48,7 +45,6 @@ use windows_result::HRESULT;
48
45
/// * `Ok(())` if the file is signed and the signature is valid.
49
46
/// * `Err(DscError)` if the file is not signed or the signature is invalid
50
47
///
51
- #[ cfg( windows) ]
52
48
pub fn check_authenticode ( file_path : & Path ) -> Result < ( ) , DscError > {
53
49
if is_file_checked ( file_path) {
54
50
return Ok ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments