diff options
author | Casey Deccio <casey@deccio.net> | 2021-01-08 00:46:53 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2021-01-09 03:07:33 +0300 |
commit | 8f4080c53cf7fe10b0a8eac59e94a796ab3d99fb (patch) | |
tree | 003a578cba282ae62de92f3ec0b7850e18610a64 /dnsviz/commands/grok.py | |
parent | 992baacead282d4f927cdc2ac56a2ba0005e8457 (diff) |
Allow prohibited algorithms to be considered with command-line option
Diffstat (limited to 'dnsviz/commands/grok.py')
-rw-r--r-- | dnsviz/commands/grok.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dnsviz/commands/grok.py b/dnsviz/commands/grok.py index 37e612f..14fefc1 100644 --- a/dnsviz/commands/grok.py +++ b/dnsviz/commands/grok.py @@ -221,6 +221,10 @@ class GrokArgHelper: type=self.comma_separated_ints_set, action='store', metavar='<digest_alg>,[<digest_alg>...]', help='Support only the specified DNSSEC digest algorithm(s)') + self.parser.add_argument('-b', '--validate-prohibited-algs', + const=True, default=False, + action='store_const', + help='Validate algorithms for which validation is otherwise prohibited') self.parser.add_argument('-C', '--enforce-cookies', const=True, default=False, action='store_const', @@ -454,7 +458,7 @@ def main(argv): d = OrderedDict() for name_obj in name_objs: - name_obj.populate_status(arghelper.trusted_keys, supported_algs=arghelper.args.algorithms, supported_digest_algs=arghelper.args.digest_algorithms) + name_obj.populate_status(arghelper.trusted_keys, supported_algs=arghelper.args.algorithms, supported_digest_algs=arghelper.args.digest_algorithms, validate_prohibited_algs=arghelper.args.validate_prohibited_algs) if arghelper.trusted_keys: G = DNSAuthGraph() |