Skip to content

Commit

Permalink
x509-cert: spki::from_key api break
Browse files Browse the repository at this point in the history
Blocking on:
 - #1290
 - #1296
  • Loading branch information
baloo committed Jan 4, 2024
1 parent a40e97b commit a6067d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x509-cert/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rust-version = "1.65"
[dependencies]
const-oid = { version = "0.9.6", features = ["db"] }
der = { version = "0.7.6", features = ["alloc", "derive", "flagset", "oid"] }
spki = { version = "0.7.3", features = ["alloc"] }
spki = { version = "0.8.0-pre", features = ["alloc"] }

# optional dependencies
arbitrary = { version = "1.3", features = ["derive"], optional = true }
Expand Down
4 changes: 2 additions & 2 deletions x509-cert/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ where
cert_signer: &'s S,
) -> Result<Self> {
let verifying_key = cert_signer.verifying_key();
let signer_pub = SubjectPublicKeyInfoOwned::from_key(verifying_key)?;
let signer_pub = SubjectPublicKeyInfoOwned::from_key(&verifying_key)?;

let signature_alg = cert_signer.signature_algorithm_identifier()?;
let issuer = profile.get_issuer(&subject);
Expand Down Expand Up @@ -368,7 +368,7 @@ where
pub fn new(subject: Name, req_signer: &'s S) -> Result<Self> {
let version = Default::default();
let verifying_key = req_signer.verifying_key();
let public_key = SubjectPublicKeyInfoOwned::from_key(verifying_key)?;
let public_key = SubjectPublicKeyInfoOwned::from_key(&verifying_key)?;
let attributes = Default::default();
let extension_req = Default::default();

Expand Down

0 comments on commit a6067d9

Please sign in to comment.