mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
provide statistics for all key exchange methods, not DHE and ECDHE only
This commit is contained in:
parent
3667b04ad7
commit
be0439ef99
@ -40,9 +40,13 @@ for r,d,flist in os.walk(path):
|
|||||||
DES3 = False
|
DES3 = False
|
||||||
CAMELLIA = False
|
CAMELLIA = False
|
||||||
RC4 = False
|
RC4 = False
|
||||||
|
ADH = False
|
||||||
DHE = False
|
DHE = False
|
||||||
|
AECDH = False
|
||||||
ECDHE = False
|
ECDHE = False
|
||||||
RSA = False
|
RSA = False
|
||||||
|
ECDH = False
|
||||||
|
DH = False
|
||||||
SSL2 = False
|
SSL2 = False
|
||||||
SSL3 = False
|
SSL3 = False
|
||||||
TLS1 = False
|
TLS1 = False
|
||||||
@ -113,9 +117,19 @@ for r,d,flist in os.walk(path):
|
|||||||
if 'ECDHE' in entry['cipher']:
|
if 'ECDHE' in entry['cipher']:
|
||||||
ECDHE = True
|
ECDHE = True
|
||||||
temppfsstats[entry['pfs']] = 1
|
temppfsstats[entry['pfs']] = 1
|
||||||
elif 'DHE' in entry['cipher']:
|
elif 'DHE' in entry['cipher'] or 'EDH' in entry['cipher']:
|
||||||
DHE = True
|
DHE = True
|
||||||
temppfsstats[entry['pfs']] = 1
|
temppfsstats[entry['pfs']] = 1
|
||||||
|
elif 'AECDH' in entry['cipher']:
|
||||||
|
AECDH = True
|
||||||
|
elif 'ADH' in entry['cipher']:
|
||||||
|
ADH = True
|
||||||
|
elif 'ECDH' in entry['cipher']:
|
||||||
|
ECDH = True
|
||||||
|
elif 'DH' in entry['cipher']:
|
||||||
|
DH = True
|
||||||
|
else:
|
||||||
|
RSA = True
|
||||||
|
|
||||||
""" save the key size """
|
""" save the key size """
|
||||||
if 'ECDSA' in entry['cipher']:
|
if 'ECDSA' in entry['cipher']:
|
||||||
@ -236,10 +250,18 @@ for r,d,flist in os.walk(path):
|
|||||||
cipherstats[cipher] += 1
|
cipherstats[cipher] += 1
|
||||||
|
|
||||||
""" store handshake stats """
|
""" store handshake stats """
|
||||||
|
if AECDH:
|
||||||
|
handshakestats['AECDH'] += 1
|
||||||
|
if ADH:
|
||||||
|
handshakestats['ADH'] += 1
|
||||||
if ECDHE:
|
if ECDHE:
|
||||||
handshakestats['ECDHE'] += 1
|
handshakestats['ECDHE'] += 1
|
||||||
if DHE:
|
if DHE:
|
||||||
handshakestats['DHE'] += 1
|
handshakestats['DHE'] += 1
|
||||||
|
if ECDH:
|
||||||
|
handshakestats['ECDH'] += 1
|
||||||
|
if DH:
|
||||||
|
handshakestats['DH'] += 1
|
||||||
if RSA:
|
if RSA:
|
||||||
handshakestats['RSA'] += 1
|
handshakestats['RSA'] += 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user