]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
get_mozilla_ciphers: look at ssl3con.c, not sslenum.c
authorNick Mathewson <nickm@torproject.org>
Wed, 14 Mar 2012 22:36:58 +0000 (18:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 14 Mar 2012 22:36:58 +0000 (18:36 -0400)
src/common/get_mozilla_ciphers.py

index 61e8c4d90dcb44042a4ffb64f62af9343c97a953..f9250317b1c29db2d918391bc3b50e4ad7d2fd37 100644 (file)
@@ -64,22 +64,20 @@ for line in cipherLines:
 
 ####
 # Now find the correct order for the ciphers
-fileC = open(ff('security/nss/lib/ssl/sslenum.c'), 'r')
+fileC = open(ff('security/nss/lib/ssl/ssl3con.c'), 'r')
 firefox_ciphers = []
 inEnum=False
 for line in fileC:
     if not inEnum:
-        if "SSL_ImplementedCiphers[] =" in line:
+        if "ssl3CipherSuiteCfg cipherSuites[" in line:
             inEnum = True
         continue
 
     if line.startswith("};"):
         break
 
-    m = re.match(r'^\s*([A-Z_0-9]+)\s*', line)
+    m = re.match(r'^\s*\{\s*([A-Z_0-9]+),', line)
     if m:
-        if m.group(1) == "0":
-            break
         firefox_ciphers.append(m.group(1))
 
 fileC.close()