Skip to content

Commit 84616db

Browse files
committed
API upd
1 parent 7fc6aa4 commit 84616db

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

checks/tasks/tls/scans.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ def test_key_exchange_hash(
882882
phase_out_hash_result = _test_connection_with_limited_sigalgs(
883883
server_connectivity_info, SIGNATURE_ALGORITHMS_PHASE_OUT_HASH
884884
)
885-
if bad_hash_result:
885+
if phase_out_hash_result:
886886
log.info(f"SHA2 key exchange check: negotiated phase_out hash ({bad_hash_result})")
887887
return KeyExchangeHashFunctionEvaluation(
888888
status=KexHashFuncStatus.phase_out,
@@ -912,7 +912,7 @@ def _test_connection_with_limited_sigalgs(
912912
# OpenSSL will accept this, as it does know about the secure hash.
913913
if sigalg_nid in sigalgs:
914914
return sigalg_nid
915-
except (ClientCertificateRequested, ServerRejectedTlsHandshake, TlsHandshakeTimedOut, OpenSSLError) as exc:
915+
except (ClientCertificateRequested, ServerRejectedTlsHandshake, TlsHandshakeTimedOut, OpenSSLError):
916916
pass
917917
finally:
918918
ssl_connection.close()

interface/batch/openapi.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,11 @@ components:
680680
type: string
681681
enumClass: KexHashFuncStatus
682682
description: |
683-
SHA2 support for signatures of the server:
684-
* `bad` - SHA2 is not supported.
685-
* `good` - SHA2 is supported.
686-
* `unknown` - SHA2 support could not be determined (the server
683+
Supported hashes for signatures:
684+
* `good` - server supports only good hashes (SHA256 or newer).
685+
* `bad` - server supports MD5 or SHA1.
686+
* `phase_out` - server supports SHA224.
687+
* `unknown` - hash support could not be determined (the server
687688
uses RSA key exchange or anonymous ciphers).
688689
zero_rtt:
689690
type: string

requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ beautifulsoup4==4.13.3
2525
billiard==4.2.1
2626
# via celery
2727
bleach[css]==5.0.1
28-
# via django-bleach
28+
# via
29+
# bleach
30+
# django-bleach
2931
cached-property==2.0.1
3032
# via -r requirements.in
3133
celery==5.4.0
@@ -226,6 +228,7 @@ statshog==1.0.6
226228
tinycss2==1.1.1
227229
# via bleach
228230
tls-parser==2.0.1
231+
# via -r requirements.in
229232
# via sslyze
230233
tomli==2.2.1
231234
# via

0 commit comments

Comments
 (0)