Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ManiMozaffar committed Sep 1, 2024
1 parent 42ee1ea commit 29a8f8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 45 deletions.
42 changes: 0 additions & 42 deletions cfcrawler/cipher.py

This file was deleted.

7 changes: 4 additions & 3 deletions tests/test_ciphers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import pytest

from cfcrawler.cipher import MAP_BROWSER_TO_CIPHER
from cfcrawler.tls import get_cipher_suite
from cfcrawler.types import Browser


def test_valid_ciphers():
for browser, ciphers in MAP_BROWSER_TO_CIPHER.items():
cipher_suite = ":".join(ciphers)
for browser in Browser:
cipher_suite = get_cipher_suite(browser)
try:
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
context.set_ciphers(cipher_suite)
Expand Down

0 comments on commit 29a8f8f

Please sign in to comment.