mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
Accept sha384 and sha512 signatures as well as sha256
This commit is contained in:
parent
5b32afaa1f
commit
28c6c2488b
@ -143,7 +143,7 @@ def is_intermediate(results):
|
|||||||
all_proto.append(proto)
|
all_proto.append(proto)
|
||||||
if 'TLSv1' in conn['protocols']:
|
if 'TLSv1' in conn['protocols']:
|
||||||
has_tls1 = True
|
has_tls1 = True
|
||||||
if 'sha256WithRSAEncryption' not in conn['sigalg']:
|
if conn['sigalg'][0] not in ['sha256WithRSAEncryption', 'sha384WithRSAEncryption', 'sha512WithRSAEncryption']:
|
||||||
logging.debug(conn['sigalg'][0] + ' is a not an intermediate signature')
|
logging.debug(conn['sigalg'][0] + ' is a not an intermediate signature')
|
||||||
has_sha256 = False
|
has_sha256 = False
|
||||||
if conn['cipher'][0:2] == 'DHE':
|
if conn['cipher'][0:2] == 'DHE':
|
||||||
@ -197,9 +197,9 @@ def is_modern(results):
|
|||||||
for proto in conn['protocols']:
|
for proto in conn['protocols']:
|
||||||
if proto not in all_proto:
|
if proto not in all_proto:
|
||||||
all_proto.append(proto)
|
all_proto.append(proto)
|
||||||
if 'sha256WithRSAEncryption' not in conn['sigalg']:
|
if conn['sigalg'][0] not in ['sha256WithRSAEncryption', 'sha384WithRSAEncryption', 'sha512WithRSAEncryption']:
|
||||||
logging.debug(conn['sigalg'][0] + ' is a not an intermediate signature')
|
logging.debug(conn['sigalg'][0] + ' is a not an modern signature')
|
||||||
inter = False
|
modern = False
|
||||||
has_sha256 = False
|
has_sha256 = False
|
||||||
if conn['cipher'][0:2] == 'DHE':
|
if conn['cipher'][0:2] == 'DHE':
|
||||||
if conn['pfs'] != 'DH,2048bits':
|
if conn['pfs'] != 'DH,2048bits':
|
||||||
|
Loading…
Reference in New Issue
Block a user