Rename crate::yubikey to crate::key

So that it doesn't conflict with the renamed `yubikey` crate.
This commit is contained in:
Jack Grigg
2021-10-18 21:07:23 +01:00
parent 22dfc3ee89
commit 399f0b4c11
5 changed files with 26 additions and 29 deletions
+2 -2
View File
@@ -9,9 +9,9 @@ use yubikey_piv::{
use crate::{
error::Error,
key::{self, Stub},
p256::Recipient,
util::{Metadata, POLICY_EXTENSION_OID},
yubikey::{self, Stub},
BINARY_NAME, USABLE_SLOTS,
};
@@ -90,7 +90,7 @@ impl IdentityBuilder {
// No need to ask for users to enter their PIN if the PIN policy requires it,
// because here we _always_ require them to enter their PIN in order to access the
// protected management key (which is necessary in order to generate identities).
yubikey::manage(yubikey)?;
key::manage(yubikey)?;
if let TouchPolicy::Never = touch_policy {
// No need to touch YubiKey