aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gkeys/gkeys/checks.py')
-rw-r--r--gkeys/gkeys/checks.py4
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: