Remove deprecate function; update e ref. (#32275)

This commit is contained in:
Brian Joerger 2023-10-11 17:31:46 -07:00 committed by GitHub
parent 82522acfb0
commit 4d094a7743
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 16 deletions

View file

@ -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

@ -1 +1 @@
Subproject commit 9a65e165428fca7f2d14c26e10c7869b74e30b43
Subproject commit 2047c44e6c0d514bcf8c18a983dfbb208ecb98f3