Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
nabla-c0d3 committed Mar 29, 2020
1 parent e02cad5 commit 4923e8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions sslyze/plugins/scan_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
class ScanCommand:
"""The list of all scan commands supported by SSLyze.
"""

CERTIFICATE_INFO: Literal["certificate_info"] = "certificate_info"

SSL_2_0_CIPHER_SUITES: Literal["ssl_2_0_cipher_suites"] = "ssl_2_0_cipher_suites"
Expand Down
4 changes: 4 additions & 0 deletions sslyze/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ScanCommandErrorReasonEnum(Enum):
class ScanCommandError:
"""An error that prevented a specific scan command ran against a specific server from completing.
."""

reason: ScanCommandErrorReasonEnum
exception_trace: TracebackException

Expand All @@ -54,6 +55,7 @@ class ScanCommandExtraArgumentsDict(TypedDict, total=False):
class ServerScanRequest:
"""A request to scan a specific server with the supplied scan commands.
"""

server_info: ServerConnectivityInfo
scan_commands: Set[ScanCommandType]
scan_commands_extra_arguments: ScanCommandExtraArgumentsDict = field(default_factory=dict) # type: ignore
Expand All @@ -73,6 +75,7 @@ def __post_init__(self) -> None:
class ScanCommandResultsDict(TypedDict, total=False):
"""A dictionary of results for every scan command that was scheduled against a specific server.
"""

# Field is present if the corresponding scan command was scheduled and was run successfully
certificate_info: CertificateInfoScanResult
ssl_2_0_cipher_suites: CipherSuitesScanResult
Expand Down Expand Up @@ -100,6 +103,7 @@ class ScanCommandResultsDict(TypedDict, total=False):
class ServerScanResult:
"""The result of a ServerScanRequest that was completed by a Scanner.
"""

scan_commands_results: ScanCommandResultsDict
scan_commands_errors: ScanCommandErrorsDict

Expand Down

0 comments on commit 4923e8c

Please sign in to comment.