Skip to content

Commit e4050ee

Browse files
authored
cms: relax From certificate for SignerIdentifier to accept a reference (#1966)
Fixup #1962
1 parent 6e6ed03 commit e4050ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cms/src/signed_data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ impl ValueOrd for SignerIdentifier {
181181
}
182182
}
183183

184-
impl From<Certificate> for SignerIdentifier {
185-
fn from(cert: Certificate) -> Self {
184+
impl From<&Certificate> for SignerIdentifier {
185+
fn from(cert: &Certificate) -> Self {
186186
let tbs = cert.tbs_certificate();
187187

188188
match tbs.get_extension::<SubjectKeyIdentifier>() {

0 commit comments

Comments
 (0)