diff --git a/confluent_server/confluent/sockapi.py b/confluent_server/confluent/sockapi.py index 757a59ef..f5623786 100644 --- a/confluent_server/confluent/sockapi.py +++ b/confluent_server/confluent/sockapi.py @@ -319,9 +319,12 @@ def _tlshandler(bind_host, bind_port): cnn, addr = plainsocket.accept() eventlet.spawn_n(_tlsstartup, cnn) -@ffi.callback("int(*)( X509_STORE_CTX *, void*)") -def verify_stub(store, misc): - return 1 + +if ffi: + @ffi.callback("int(*)( X509_STORE_CTX *, void*)") + def verify_stub(store, misc): + return 1 + def _tlsstartup(cnn): authname = None