Skip to content

Commit

Permalink
derive Debug for RingAlgorithm, AwsLcRsAlgorithm
Browse files Browse the repository at this point in the history
The `SignatureVerificationAlgorithm` in pki-types was changed to have
a `Debug` bound, so these types needs to be `Debug` to implement the
trait.
  • Loading branch information
cpu committed Nov 29, 2023
1 parent 6a8ae20 commit d5f6732
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/aws_lc_rs_algs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::signed_data::alg_id;
// so this is very similar to ring_algs.rs.

/// A `SignatureVerificationAlgorithm` implemented using aws-lc-rs.
#[derive(Debug)]
struct AwsLcRsAlgorithm {
public_key_alg_id: AlgorithmIdentifier,
signature_alg_id: AlgorithmIdentifier,
Expand Down
1 change: 1 addition & 0 deletions src/ring_algs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use ring::signature;
use crate::signed_data::alg_id;

/// A `SignatureVerificationAlgorithm` implemented using *ring*.
#[derive(Debug)]
struct RingAlgorithm {
public_key_alg_id: AlgorithmIdentifier,
signature_alg_id: AlgorithmIdentifier,
Expand Down

0 comments on commit d5f6732

Please sign in to comment.