Skip to content

Commit

Permalink
Fix dyn warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Jul 20, 2019
1 parent 1863246 commit 9f076c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const SCT_X509_ENTRY: [u8; 2] = [0, 0];

impl<'a> SCT<'a> {
fn verify(&self, key: &[u8], cert: &[u8]) -> Result<(), Error> {
let alg: &ring::signature::VerificationAlgorithm = match self.sig_alg {
let alg: &dyn ring::signature::VerificationAlgorithm = match self.sig_alg {
ECDSA_SHA256 => &ring::signature::ECDSA_P256_SHA256_ASN1,
ECDSA_SHA384 => &ring::signature::ECDSA_P384_SHA384_ASN1,
RSA_PKCS1_SHA256 => &ring::signature::RSA_PKCS1_2048_8192_SHA256,
Expand Down

0 comments on commit 9f076c6

Please sign in to comment.