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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user