mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-28 03:48:35 +00:00
Have collective command warn if the libssl library is not viable
Main example is RedHat providing pyOpenSSL of relatively ancient vintage.
This commit is contained in:
parent
9b48110155
commit
dfb720d0ee
@ -144,6 +144,14 @@ def sessionhdl(connection, authname, skipauth=False, cert=None):
|
||||
send_data(connection, {'authpassed': 1})
|
||||
request = tlvdata.recv(connection)
|
||||
if 'collective' in request and skipauth:
|
||||
if not libssl:
|
||||
tlvdata.send(
|
||||
connection,
|
||||
{'collective': {'error': 'Server either does not have '
|
||||
'python-openssl installed or has an '
|
||||
'incorrect version installed '
|
||||
'(e.g. pyOpenSSL)'}})
|
||||
return
|
||||
return collective.handle_connection(connection, None, request['collective'],
|
||||
local=True)
|
||||
while request is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user