From: Ralf Jung Date: Sun, 23 Nov 2014 19:19:02 +0000 (+0100) Subject: anotehr attempt at fixing protocol listing for Fedora's OpenSSL X-Git-Url: https://git.ralfj.de/tls-check.git/commitdiff_plain/ba9287202872b62c09e903adb767eaaad87504fa?ds=inline;hp=a5f47d777eb5cbcac788ea752ea3dafb36a147a3 anotehr attempt at fixing protocol listing for Fedora's OpenSSL --- diff --git a/tls-check b/tls-check index 84ca009..fcbf941 100755 --- a/tls-check +++ b/tls-check @@ -119,6 +119,10 @@ class CipherPropsProvider: self.props = {} def getProps(self, protocol, cipher): + # strip the sub-version-number from the protocol + pos = protocol.find('_') + if pos >= 0: + protocol = protocol[:pos] # as OpenSSL about this cipher cipherInfo = subprocess.check_output(["openssl", "ciphers", "-v", "-"+protocol, cipher]).decode('UTF-8').strip() assert '\n' not in cipherInfo, "Cipher "+cipher+" produced unexpected output:\n"+cipherInfo