2
0
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:
Jarrod Johnson 2018-08-17 13:56:38 -04:00
parent 319fec2145
commit f5d5cbd67b

View File

@ -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: