mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 09:13:39 +00:00
Remove deprecate function; update e ref. (#32275)
This commit is contained in:
parent
82522acfb0
commit
4d094a7743
|
@ -32,21 +32,6 @@ func GetYubiKeyPrivateKey(ctx context.Context, policy PrivateKeyPolicy, slot PIV
|
|||
return priv, nil
|
||||
}
|
||||
|
||||
// TODO(Joerger): Deprecated in favor of GetYubiKeyPrivateKey.
|
||||
// Delete once all references in /e are removed
|
||||
func GetOrGenerateYubiKeyPrivateKey(touchRequired bool) (*PrivateKey, error) {
|
||||
policy := PrivateKeyPolicyHardwareKey
|
||||
if touchRequired {
|
||||
policy = PrivateKeyPolicyHardwareKeyTouch
|
||||
}
|
||||
|
||||
priv, err := getOrGenerateYubiKeyPrivateKey(context.TODO(), policy, "")
|
||||
if err != nil {
|
||||
return nil, trace.Wrap(err, "failed to get a YubiKey private key")
|
||||
}
|
||||
return priv, nil
|
||||
}
|
||||
|
||||
// PIVSlot is the string representation of a PIV slot. e.g. "9a".
|
||||
type PIVSlot string
|
||||
|
||||
|
|
2
e
2
e
|
@ -1 +1 @@
|
|||
Subproject commit 9a65e165428fca7f2d14c26e10c7869b74e30b43
|
||||
Subproject commit 2047c44e6c0d514bcf8c18a983dfbb208ecb98f3
|
Loading…
Reference in a new issue