Skip to content

Commit

Permalink
Refactor TLS and server file locations
Browse files Browse the repository at this point in the history
  • Loading branch information
drazisil committed Aug 15, 2024
1 parent cbc9e38 commit 51aacaf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pyswitch/ConnectionHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ def handle(self):
protocol_version = TLSProtocolVersion(first_bytes[1:3])
print("Protocol version: ", protocol_version)

ssl_context = create_default_context(ssl.Purpose.CLIENT_AUTH)

with ssl_context.wrap_socket(self.request, server_side=True) as ssl_socket:
print("SSL version: ", ssl_socket.version())
return


def peek_data(sock: socket.socket, len: int):
Expand Down

0 comments on commit 51aacaf

Please sign in to comment.