We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9bb037 commit 3b2760aCopy full SHA for 3b2760a
omnibor/src/ffi/artifact_id.rs
@@ -196,7 +196,8 @@ pub unsafe extern "C" fn ob_aid_sha256_id_reader(fd: RawFd) -> *const ArtifactId
196
pub unsafe extern "C" fn ob_aid_sha256_id_reader(handle: RawHandle) -> *const ArtifactIdSha256 {
197
let output = catch_panic(|| {
198
let mut file = unsafe { File::from_raw_handle(handle) };
199
- let artifact_id = ArtifactIdBuilder::with_rustcrypto().identify_file(&mut file)?;
+ let provider = RustCrypto::new();
200
+ let artifact_id = ArtifactId::identify(provider, &mut file)?;
201
let artifact_id: ArtifactIdSha256 = const_transmute(artifact_id);
202
let boxed = Box::new(artifact_id);
203
Ok(Box::into_raw(boxed) as *const _)
0 commit comments