diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-01-27 16:15:26 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-01-27 16:15:26 -0500 |
commit | 26a9787aa50b50f724f3f58294f3780b83149acf (patch) | |
tree | 05953e583c16fbd78b878bfaeb1f6e446c7c99f8 | |
parent | 363be43df36faa631fe0a49239e27489db466dc2 (diff) | |
download | tor-26a9787aa50b50f724f3f58294f3780b83149acf.tar.gz tor-26a9787aa50b50f724f3f58294f3780b83149acf.zip |
MOre gen_server_ciphers improvements:
- Remove DES from mandatory list.
- always put the closing ; on its own line.
-rwxr-xr-x | scripts/codegen/gen_server_ciphers.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/codegen/gen_server_ciphers.py b/scripts/codegen/gen_server_ciphers.py index 7b61d865a2..7470f8a025 100755 --- a/scripts/codegen/gen_server_ciphers.py +++ b/scripts/codegen/gen_server_ciphers.py @@ -20,7 +20,6 @@ BAD_STUFF = [ "_DES_40_", "MD5", "_RC4_", "_DES_64_", MANDATORY = [ "TLS1_TXT_DHE_RSA_WITH_AES_256_SHA", "TLS1_TXT_DHE_RSA_WITH_AES_128_SHA", - "SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA", ] def find_ciphers(filename): @@ -112,18 +111,21 @@ for fname in sys.argv[1:]: ALL_CIPHERS.sort(key=Ciphersuite.sort_key) +indent = " "*7 + for c in ALL_CIPHERS: if c is ALL_CIPHERS[-1]: - colon = ';' + colon = '' else: colon = ' ":"' if c.name in MANDATORY: - print " /* Required */" - print ' %s%s'%(c.name,colon) + print "%s/* Required */"%indent + print '%s%s%s'%(indent,c.name,colon) else: print "#ifdef %s"%c.name - print ' %s%s'%(c.name,colon) + print '%s%s%s'%(indent,c.name,colon) print "#endif" +print '%s;'%indent |