diff options
author | Brian Dolbec dolsen <dolsen@gentoo.org> | 2018-08-14 18:47:19 -0700 |
---|---|---|
committer | Brian Dolbec dolsen <dolsen@gentoo.org> | 2018-08-14 18:47:19 -0700 |
commit | 2bdf8c0c827cf024c4e26f9167ed4a6573625601 (patch) | |
tree | 751eb0b4789c241b8e8675b665d6248d3d63d7fd | |
parent | gkeys checks.py: Update glep 63 specs (diff) | |
download | gentoo-keys-2bdf8c0c827cf024c4e26f9167ed4a6573625601.tar.gz gentoo-keys-2bdf8c0c827cf024c4e26f9167ed4a6573625601.tar.bz2 gentoo-keys-2bdf8c0c827cf024c4e26f9167ed4a6573625601.zip |
gkeys checks.py: Remove missed DSA algorithm entries
Move bitlength calc within the primary if,
-rw-r--r-- | gkeys/gkeys/checks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gkeys/gkeys/checks.py b/gkeys/gkeys/checks.py index 8119395..8da6414 100644 --- a/gkeys/gkeys/checks.py +++ b/gkeys/gkeys/checks.py @@ -64,7 +64,7 @@ TEST_SPEC = { 'expire': 900, }, }, - 'algorithms': ['DSA', 'RSA', '1', '2', '3', '17'], + 'algorithms': ['RSA', '1', '2', '3'], 'versions': ['4'], 'qualified_id': '@gentoo.org', } @@ -302,8 +302,8 @@ class KeyChecks(object): def _test_bits(self, data, stats): - bits = int(data.keylength) if data.pubkey_algo in TEST_SPEC['algorithms']: + bits = int(data.keylength) if bits >= TEST_SPEC['bits'][ALGORITHM_CODES[data.pubkey_algo]]: stats[SPEC_INDEX['bits']] = True else: |