summaryrefslogtreecommitdiff
path: root/scripts/codegen
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-10-07 16:24:30 -0400
committerNick Mathewson <nickm@torproject.org>2015-10-07 16:24:30 -0400
commita02f6e3d23c987977ea3ea20d93779b5ca562dbd (patch)
tree61c967965d06d8e01ed7a34501c0c44915fb97db /scripts/codegen
parentcd14405a431cf351abe79441214899cfee5eb670 (diff)
downloadtor-a02f6e3d23c987977ea3ea20d93779b5ca562dbd.tar.gz
tor-a02f6e3d23c987977ea3ea20d93779b5ca562dbd.zip
update codegen script to work with latest mozilla
Diffstat (limited to 'scripts/codegen')
-rw-r--r--scripts/codegen/get_mozilla_ciphers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/codegen/get_mozilla_ciphers.py b/scripts/codegen/get_mozilla_ciphers.py
index e0a662bea0..e673ec7dc6 100644
--- a/scripts/codegen/get_mozilla_ciphers.py
+++ b/scripts/codegen/get_mozilla_ciphers.py
@@ -29,7 +29,7 @@ def ossl(s):
#####
# Read the cpp file to understand what Ciphers map to what name :
# Make "ciphers" a map from name used in the javascript to a cipher macro name
-fileA = open(ff('security/manager/ssl/src/nsNSSComponent.cpp'),'r')
+fileA = open(ff('security/manager/ssl/nsNSSComponent.cpp'),'r')
# The input format is a file containing exactly one section of the form:
# static CipherPref CipherPrefs[] = {
@@ -71,7 +71,7 @@ for line in cipherLines:
assert not key_pending
key_pending = m.group(1)
continue
- m = re.search(r'^\s*(\S+)(?:,\s*(true|false))?\s*}', line)
+ m = re.search(r'^\s*(\S+)(?:,\s*(true|false))+\s*}', line)
if m:
assert key_pending
key = key_pending
@@ -107,7 +107,7 @@ fileC.close()
# Build a map enabled_ciphers from javascript name to "true" or "false",
# and an (unordered!) list of the macro names for those ciphers that are
# enabled.
-fileB = open(ff('netwerk/base/public/security-prefs.js'), 'r')
+fileB = open(ff('netwerk/base/security-prefs.js'), 'r')
enabled_ciphers = {}
for line in fileB: