count EDH-DES as PFS too in general stats

This commit is contained in:
Hubert Kario 2014-10-25 16:23:41 +02:00
parent af2e25ec89
commit 29c739faa9
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@ for r,d,flist in os.walk(path):
""" done with this file, storing the stats """
if DHE or ECDHE:
pfsstats['Support PFS'] += 1
if 'DHE-' in results['ciphersuite'][0]['cipher']:
if 'DHE-' in results['ciphersuite'][0]['cipher'] or \
'EDH-' in results['ciphersuite'][0]['cipher']:
pfsstats['Prefer PFS'] += 1
pfsstats['Prefer ' + results['ciphersuite'][0]['pfs']] += 1
for s in temppfsstats: