Skip to content
Snippets Groups Projects
Commit 670b47082c95 authored by Dariusz Suchojad's avatar Dariusz Suchojad
Browse files

GH #141 - Use MQCD_VERSION 7 if encryption is required and MQCD version is less than that.

parent c672cff1b5ba
Branches
No related tags found
No related merge requests found
......@@ -1412,6 +1412,12 @@
cd = kw['cd'] if 'cd' in kw else CD()
sco = kw['sco'] if 'sco' in kw else SCO()
# TLS encryption requires MQCD of version at least 7.
# Thus, if someone uses TLS and the version is lower than that,
# we can just increase it ourselves.
if cd.SSLCipherSpec and cd.Version < CMQC.MQCD_VERSION_7:
cd.Version = CMQC.MQCD_VERSION_7
rv = pymqe.MQCONNX(name, options, cd.pack() if cd else None, user_password, sco.pack())
if rv[1]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment