We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fb6b20 commit a14f97dCopy full SHA for a14f97d
1 file changed
dsc_lib/src/security/authenticode.rs
@@ -10,9 +10,7 @@ use std::{
10
path::Path,
11
ptr::{from_ref, null_mut},
12
};
13
-#[cfg(windows)]
14
use std::os::windows::ffi::OsStrExt;
15
16
use windows::{
17
core::{PCWSTR, PWSTR, GUID},
18
Win32::{
@@ -34,7 +32,6 @@ use windows::{
34
32
}
35
33
36
37
38
use windows_result::HRESULT;
39
40
/// 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
52
pub fn check_authenticode(file_path: &Path) -> Result<(), DscError> {
53
if is_file_checked(file_path) {
54
return Ok(());
0 commit comments