mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-16 18:49:04 +00:00
Only conditionally require ffi
Only collective mode requires ffi, do not incur requirement for non-collective mode.
This commit is contained in:
parent
a905ae4865
commit
08cf698609
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user