Skip to content

Commit 3b2760a

Browse files
fix: Fix Windows build failure
Signed-off-by: Andrew Lilley Brinker <[email protected]>
1 parent a9bb037 commit 3b2760a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

omnibor/src/ffi/artifact_id.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ pub unsafe extern "C" fn ob_aid_sha256_id_reader(fd: RawFd) -> *const ArtifactId
196196
pub unsafe extern "C" fn ob_aid_sha256_id_reader(handle: RawHandle) -> *const ArtifactIdSha256 {
197197
let output = catch_panic(|| {
198198
let mut file = unsafe { File::from_raw_handle(handle) };
199-
let artifact_id = ArtifactIdBuilder::with_rustcrypto().identify_file(&mut file)?;
199+
let provider = RustCrypto::new();
200+
let artifact_id = ArtifactId::identify(provider, &mut file)?;
200201
let artifact_id: ArtifactIdSha256 = const_transmute(artifact_id);
201202
let boxed = Box::new(artifact_id);
202203
Ok(Box::into_raw(boxed) as *const _)

0 commit comments

Comments
 (0)