summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-13 21:18:29 +0100
committerGitHub <noreply@github.com>2020-11-13 21:18:29 +0100
commit0a55daba5818c671132e88cb8a0c0f65ee9e0f1b (patch)
tree9634642c72ead9e6f7c50f84fc0cd9aaf701e08d /python
parent1de5525ebed0a33af3460332bf9e074ff06b3bfb (diff)
parent873d2d41f3d8bd3ea65be11a650ea69523df426f (diff)
downloadvyos-1x-0a55daba5818c671132e88cb8a0c0f65ee9e0f1b.tar.gz
vyos-1x-0a55daba5818c671132e88cb8a0c0f65ee9e0f1b.zip
Merge pull request #605 from kroy-the-rabbit/dhlength
T3060: Fixing a backwards check on dh length
Diffstat (limited to 'python')
-rw-r--r--python/vyos/configverify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index 2a5dc7af2..675dac5b1 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -278,7 +278,7 @@ def verify_diffie_hellman_length(file, min_keysize):
prog = re.compile('\d+\s+bit')
if prog.search(out):
bits = prog.search(out)[0].split()[0]
- if int(min_keysize) >= int(bits):
+ if int(bits) >= int(min_keysize):
return True
return False