Skip to content

Commit

Permalink
fix x509-cert
Browse files Browse the repository at this point in the history
  • Loading branch information
dishmaker committed Oct 9, 2024
1 parent 19b57e4 commit 756ef5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x509-cert/tests/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl<'a> DecodeValue<'a> for DeferDecodeTbsCertificate<'a> {
header: Header,
) -> der::Result<DeferDecodeTbsCertificate<'a>> {
reader.read_nested(header.length, |reader| {
let version = ContextSpecificExplicit::decode_explicit(reader, ::der::TagNumber(0))?
let version = ContextSpecificExplicit::<0, u8>::decode_skipping(reader)?
.map(|cs| cs.value)
.unwrap_or_else(Default::default);

Expand Down

0 comments on commit 756ef5f

Please sign in to comment.