Skip to content

Commit

Permalink
Remove unused Extensions struct
Browse files Browse the repository at this point in the history
This structure is meant to be used with the attestation feature,
It is therefore unused, and unuseable due to a missing contructor and
being commented out in the `TbsCertificate` struct

If needed we can add it back in the future.
  • Loading branch information
sosthene-nitrokey committed Aug 6, 2024
1 parent d26a9a7 commit 732877e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/service/attest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,23 +473,6 @@ impl Encodable for Name<'_> {
}
}

#[derive(Clone, Copy, Eq, PartialEq)]
/// Currently unconstructable.
pub enum Extension {}

#[derive(Clone, Copy, Eq, PartialEq)]
/// Only empty slices possible currently.
pub struct Extensions<'l>(&'l [Extension]);

impl Encodable for Extensions<'_> {
fn encoded_length(&self) -> BerResult<BerLength> {
Ok(0u8.into())
}
fn encode(&self, _encoder: &mut Encoder<'_>) -> BerResult<()> {
Ok(())
}
}

pub struct ParsedDatetime {
year: u16,
month: u8,
Expand Down

0 comments on commit 732877e

Please sign in to comment.