From ca0cd08fe977193d8b45f0b065c0c1551531917a Mon Sep 17 00:00:00 2001 From: Ryan Nowakowski Date: Thu, 12 Sep 2019 14:02:27 -0500 Subject: [PATCH] Properly handle openssl version > 1.0.X Handle the case when the major version is greater than 1 and the minor version is greater than 0. For example, my current host uses openssl 1.1.1. --- docs/news/20190913.bugfix | 1 + src/mbed_cloud/sdk/sdk.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 docs/news/20190913.bugfix diff --git a/docs/news/20190913.bugfix b/docs/news/20190913.bugfix new file mode 100644 index 00000000..d96f0390 --- /dev/null +++ b/docs/news/20190913.bugfix @@ -0,0 +1 @@ +Handled the case when the openssl major version is greater than 1 and the minor version is greater than 0 diff --git a/src/mbed_cloud/sdk/sdk.py b/src/mbed_cloud/sdk/sdk.py index 23c98ac5..1aef56f8 100644 --- a/src/mbed_cloud/sdk/sdk.py +++ b/src/mbed_cloud/sdk/sdk.py @@ -107,7 +107,7 @@ def check_openssl_version(): minor = int(match.group(3)) patch = int(match.group(4)) - if major >= 1 and minor >= 0 and patch >= 2: + if (major, minor, patch) >= (1, 0, 2): return # all ok warnings.warn("""