Compile flag for AuthenticatorConfig (#628)

* Adds a compile flag for AuthenticatorConfig

The command can be disabled for authenticators that don't want users to
change their configuration.

* adds tool for calling Config

* std now implies config_command

* removes obsolete comment
This commit is contained in:
kaczmarczyck
2023-05-08 15:45:32 +02:00
committed by GitHub
parent 94b0beed4b
commit 6fb7e194eb
9 changed files with 98 additions and 8 deletions

View File

@@ -1091,6 +1091,13 @@ if __name__ == "__main__":
help=("Compiles the OpenSK application without backward compatible "
"support for U2F/CTAP1 protocol."),
)
main_parser.add_argument(
"--no-config-command",
action=RemoveConstAction,
const="config_command",
dest="features",
help=("Removes the AuthenticatorConfig command."),
)
main_parser.add_argument(
"--rust-crypto",
action="append_const",
@@ -1174,7 +1181,7 @@ if __name__ == "__main__":
help=("Firmware version that is built."),
)
main_parser.set_defaults(features=["with_ctap1"])
main_parser.set_defaults(features=["with_ctap1", "config_command"])
# Start parsing to know if we're going to list things or not.
partial_args, _ = main_parser.parse_known_args()