Skip to content

Commit

Permalink
add Attestation to list of slots. make Signer::new public.
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-wallace committed Jul 10, 2023
1 parent 69481c3 commit aef7c67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ pub mod yubikey_signer {
}

impl<'y, KT: KeyType> Signer<'y, KT> {
pub(crate) fn new(
/// Create new Signer
pub fn new(
yubikey: &'y mut YubiKey,
key: SlotId,
subject_pki: SubjectPublicKeyInfoRef<'_>,
Expand Down
3 changes: 2 additions & 1 deletion src/piv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,11 @@ impl ManagementSlotId {
}

/// Personal Identity Verification (PIV) key slots
pub const SLOTS: [SlotId; 27] = [
pub const SLOTS: [SlotId; 28] = [
SlotId::Authentication,
SlotId::Signature,
SlotId::KeyManagement,
SlotId::Attestation,
SlotId::Retired(RetiredSlotId::R1),
SlotId::Retired(RetiredSlotId::R2),
SlotId::Retired(RetiredSlotId::R3),
Expand Down

0 comments on commit aef7c67

Please sign in to comment.