Skip to content

Commit

Permalink
Properly handle openssl version > 1.0.X
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ryannowarm committed Sep 13, 2019
1 parent 84baee3 commit 41d78a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/news/20190913.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Handled the case when the major version is greater than 1 and the minor version is greater than 0
2 changes: 1 addition & 1 deletion src/mbed_cloud/sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("""
Expand Down

0 comments on commit 41d78a3

Please sign in to comment.