Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SkelSec committed Jul 2, 2024
1 parent b3ecc7a commit 7144d32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msldap/connection.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
from typing import List, Dict
import ssl

from msldap import logger
from msldap.commons.common import MSLDAPClientStatus
Expand Down Expand Up @@ -521,7 +522,7 @@ async def starttls(self):
)
self.handle_incoming_task.cancel()
await asyncio.sleep(0)
await self.network.wrap_ssl(self.target.get_ssl_context())
await self.network.wrap_ssl(self.target.get_ssl_context(ssl.PROTOCOL_TLS_CLIENT))
self.handle_incoming_task = asyncio.create_task(self.__handle_incoming())
self.status = MSLDAPClientStatus.CONNECTED
await asyncio.sleep(0)
Expand Down

0 comments on commit 7144d32

Please sign in to comment.