@@ -192,7 +192,8 @@ pub(crate) fn update_signing_key(
192
192
record. add_signing_key ( CertOrPk :: X509 ( None ) , point_tx_idx) ;
193
193
} ,
194
194
X509DerCert :: X509Cert ( c) => {
195
- record. add_signing_key ( CertOrPk :: X509 ( Some ( c. clone ( ) ) ) , point_tx_idx) ;
195
+ record
196
+ . add_signing_key ( CertOrPk :: X509 ( Some ( c. clone ( ) . into ( ) ) ) , point_tx_idx) ;
196
197
} ,
197
198
X509DerCert :: Undefined => { } ,
198
199
}
@@ -205,7 +206,8 @@ pub(crate) fn update_signing_key(
205
206
record. add_signing_key ( CertOrPk :: C509 ( None ) , point_tx_idx) ;
206
207
} ,
207
208
C509Cert :: C509Certificate ( c) => {
208
- record. add_signing_key ( CertOrPk :: C509 ( Some ( c. clone ( ) ) ) , point_tx_idx) ;
209
+ record
210
+ . add_signing_key ( CertOrPk :: C509 ( Some ( c. clone ( ) . into ( ) ) ) , point_tx_idx) ;
209
211
} ,
210
212
C509Cert :: Undefined | C509Cert :: C509CertInMetadatumReference ( _) => { } ,
211
213
}
@@ -242,7 +244,10 @@ pub(crate) fn update_encryption_key(
242
244
record. add_encryption_key ( CertOrPk :: X509 ( None ) , point_tx_idx) ;
243
245
} ,
244
246
X509DerCert :: X509Cert ( c) => {
245
- record. add_encryption_key ( CertOrPk :: X509 ( Some ( c. clone ( ) ) ) , point_tx_idx) ;
247
+ record. add_encryption_key (
248
+ CertOrPk :: X509 ( Some ( c. clone ( ) . into ( ) ) ) ,
249
+ point_tx_idx,
250
+ ) ;
246
251
} ,
247
252
X509DerCert :: Undefined => { } ,
248
253
}
@@ -255,7 +260,10 @@ pub(crate) fn update_encryption_key(
255
260
record. add_encryption_key ( CertOrPk :: C509 ( None ) , point_tx_idx) ;
256
261
} ,
257
262
C509Cert :: C509Certificate ( c) => {
258
- record. add_encryption_key ( CertOrPk :: C509 ( Some ( c. clone ( ) ) ) , point_tx_idx) ;
263
+ record. add_encryption_key (
264
+ CertOrPk :: C509 ( Some ( c. clone ( ) . into ( ) ) ) ,
265
+ point_tx_idx,
266
+ ) ;
259
267
} ,
260
268
C509Cert :: Undefined | C509Cert :: C509CertInMetadatumReference ( _) => { } ,
261
269
}
0 commit comments