Skip to content

Commit

Permalink
bump to v0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bhesh committed Nov 17, 2023
1 parent 7f59af3 commit 6797f94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "x509-verify"
version = "0.4.1"
version = "0.4.2"
description = """
Pure Rust library that verifies X.509 signatures based on the algorithm identifiers
"""
Expand Down
6 changes: 2 additions & 4 deletions tests/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ use x509_verify::{Error, Signature, SignatureRef, VerifyInfo, VerifyingKey};
#[macro_export]
macro_rules! read_der {
($into:ty, $file:tt) => {{
let mut f = std::fs::File::open($file).expect("error opening file");
let mut data = Vec::new();
f.read_to_end(&mut data).expect("error reading file");
<$into>::from_der(&data).expect("error formatting der")
<$into>::from_der(&std::fs::read($file).expect("error reading file"))
.expect("error formatting der")
}};
}

Expand Down

0 comments on commit 6797f94

Please sign in to comment.