Skip to content

Commit

Permalink
HSMAUTH: remove retries command
Browse files Browse the repository at this point in the history
  • Loading branch information
elibon99 committed Aug 7, 2023
1 parent 878b246 commit e3fa86e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions ykman/_cli/hsmauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
InvalidPinError,
ALGORITHM,
MANAGEMENT_KEY_LEN,
CREDENTIAL_PASSWORD_LEN,
DEFAULT_MANAGEMENT_KEY,
)
from yubikit.core.smartcard import ApduError, SW
Expand Down Expand Up @@ -648,18 +647,3 @@ def change(ctx, management_key, new_management_key, generate):
handle_credential_error(
e, default_exception_msg="Failed to change management key."
)


@access.command()
@click.pass_context
def retries(ctx):
"""
Get management key retries.
This will retrieve the number of retiries left for the management key.
"""

session = ctx.obj["session"]

retries = session.get_management_key_retries()
click.echo(f"Retries left for Management Key: {retries}")

0 comments on commit e3fa86e

Please sign in to comment.