mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-24 09:13:32 +00:00
distinct_server_ephemeral: validation failure rather than exception if the key is not found
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -51,8 +51,10 @@ def distinct_server_ephemeral(client_log: ssl_log_parser.Info,
|
||||
# message in DTLS.
|
||||
if 'DHM: GY' in client_log.dumps:
|
||||
values = client_log.dumps['DHM: GY']
|
||||
else:
|
||||
elif 'server ephemeral public key' in client_log.dumps:
|
||||
values = client_log.dumps['server ephemeral public key']
|
||||
else:
|
||||
return 'Ephemeral public keys not found in client log'
|
||||
if len(values) < 2:
|
||||
return 'Fewer than two server ephemeral public keys found'
|
||||
seen = {} #type: Dict[str, int]
|
||||
|
||||
Reference in New Issue
Block a user