diff --git a/confluent_server/confluent/sockapi.py b/confluent_server/confluent/sockapi.py index 8bd49689..b1a70753 100644 --- a/confluent_server/confluent/sockapi.py +++ b/confluent_server/confluent/sockapi.py @@ -390,23 +390,6 @@ async def _tlshandler(bind_host, bind_port): else: asyncio.create_task(_tlsstartup(cnn)) -@ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_void_p, ctypes.c_void_p) -def verify_stub(store, misc): - return 1 - -class PyObject_HEAD(ctypes.Structure): - _fields_ = [ - ("ob_refcnt", ctypes.c_ssize_t), - ("ob_type", ctypes.c_void_p), - ] - - -# see main/Modules/_ssl.c, only caring about the SSL_CTX pointer -class PySSLContext(ctypes.Structure): - _fields_ = [ - ("ob_base", PyObject_HEAD), - ("ctx", ctypes.c_void_p), - ] @ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_void_p, ctypes.c_void_p) def verify_stub(store, misc):