mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
Add back support for old curve json format in parse results
This commit is contained in:
parent
a966574edc
commit
4a6ff56b81
@ -147,10 +147,21 @@ for r,d,flist in os.walk(path):
|
||||
if len(results['ciphersuite']) < 1:
|
||||
continue
|
||||
|
||||
""" save ECC fallback """
|
||||
""" save ECC fallback (new format) """
|
||||
if 'curves_fallback' in results:
|
||||
tempeccfallback = results['curves_fallback']
|
||||
|
||||
""" save ECC curve stats (old format) """
|
||||
if 'curve_fallback' in results:
|
||||
tempeccfallback = results['curve_fallback']
|
||||
if 'curve_ordering' in results:
|
||||
tempeccordering = results['curve_ordering']
|
||||
if 'curve' in results:
|
||||
for curve in results['curve']:
|
||||
tempecccurve[curve] = 1
|
||||
if len(results['curve']) == 1:
|
||||
tempecccurve[curve + ' Only'] = 1
|
||||
|
||||
""" loop over list of ciphers """
|
||||
for entry in results['ciphersuite']:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user