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::{
1010 path:: Path ,
1111 ptr:: { from_ref, null_mut} ,
1212} ;
13- #[ cfg( windows) ]
1413use std:: os:: windows:: ffi:: OsStrExt ;
15- #[ cfg( windows) ]
1614use windows:: {
1715 core:: { PCWSTR , PWSTR , GUID } ,
1816 Win32 :: {
@@ -34,7 +32,6 @@ use windows::{
3432 }
3533 }
3634} ;
37- #[ cfg( windows) ]
3835use windows_result:: HRESULT ;
3936
4037/// Check the Authenticode signature of a file.
@@ -48,7 +45,6 @@ use windows_result::HRESULT;
4845/// * `Ok(())` if the file is signed and the signature is valid.
4946/// * `Err(DscError)` if the file is not signed or the signature is invalid
5047///
51- #[ cfg( windows) ]
5248pub fn check_authenticode ( file_path : & Path ) -> Result < ( ) , DscError > {
5349 if is_file_checked ( file_path) {
5450 return Ok ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments