diff options
author | Jack Lloyd <[email protected]> | 2019-05-24 19:08:26 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-05-24 19:08:26 -0400 |
commit | 4d931bf4963da6cb5a6774adc49717ed120f44e5 (patch) | |
tree | 228043246970f5dd235f3009ba4228704c82674b | |
parent | ed8598b3304e310be1b95f8db97edf4f67f1b019 (diff) |
Make it possible to regen tls_suite_info.cpp with recent tls-parameters.txt
-rw-r--r-- | src/lib/tls/tls_suite_info.cpp | 4 | ||||
-rwxr-xr-x | src/scripts/tls_suite_info.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/tls/tls_suite_info.cpp b/src/lib/tls/tls_suite_info.cpp index 574b4e5b8..f55b7cce1 100644 --- a/src/lib/tls/tls_suite_info.cpp +++ b/src/lib/tls/tls_suite_info.cpp @@ -2,8 +2,8 @@ * TLS cipher suite information * * This file was automatically generated from the IANA assignments -* (tls-parameters.txt hash ac96406c0080f669ca9442b0f5efcb31549ecb2e) -* by ./src/scripts/tls_suite_info.py on 2017-11-05 +* (tls-parameters.txt hash fe1ef8f3492b0708f3b14c9e8f8de55188c1b3c0) +* by ./src/scripts/tls_suite_info.py on 2019-05-24 * * Botan is released under the Simplified BSD License (see license.txt) */ diff --git a/src/scripts/tls_suite_info.py b/src/scripts/tls_suite_info.py index 124a583e1..e19c24186 100755 --- a/src/scripts/tls_suite_info.py +++ b/src/scripts/tls_suite_info.py @@ -200,10 +200,10 @@ def main(args = None): if args is None: args = sys.argv - weak_crypto = ['EXPORT', 'RC2', 'IDEA', 'RC4', '_DES_', 'WITH_NULL'] + weak_crypto = ['EXPORT', 'RC2', 'IDEA', 'RC4', '_DES_', 'WITH_NULL', 'GOST'] static_dh = ['ECDH_ECDSA', 'ECDH_RSA', 'DH_DSS', 'DH_RSA'] # not supported protocol_goop = ['SCSV', 'KRB5'] - maybe_someday = ['RSA_PSK'] + maybe_someday = ['RSA_PSK', 'ECCPWD'] not_supported = weak_crypto + static_dh + protocol_goop + maybe_someday (options, args) = process_command_line(args) @@ -230,7 +230,7 @@ def main(args = None): if ns in name: should_use = False - if should_use: + if should_use and name.find('_WITH_') > 0: suites[code] = to_ciphersuite_info(code, name) sha1 = hashlib.sha1() @@ -320,11 +320,11 @@ const std::vector<Ciphersuite>& Ciphersuite::all_known_ciphersuites() for code in sorted(suites.keys()): info = suites[code] assert len(info) == 10 + suite_expr = 'Ciphersuite(0x%s, "%s", Auth_Method::%s, Kex_Algo::%s, "%s", %d, "%s", %d, KDF_Algo::%s, Nonce_Format::%s)' % ( code, info[0], info[2], info[3], info[4], info[5], info[6], info[7], info[8].replace('-','_'), info[9]) suite_info += " " + suite_expr + ",\n" - suite_info += """ }; |