Skip to content

Commit

Permalink
(conan-io#21631) libssh2: bump mbedtls
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur authored and Tony Perrie committed Dec 15, 2023
1 parent 47fba02 commit 106f57e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes/libssh2/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout
from conan.tools.files import apply_conandata_patches, export_conandata_patches, get, copy, rmdir, collect_libs
from conan.tools.microsoft import is_msvc
from conan.tools.scm import Version
import os

required_conan_version = ">=1.53.0"
Expand Down Expand Up @@ -84,8 +85,10 @@ def requirements(self):
if self.options.crypto_backend == "openssl":
self.requires("openssl/[>=1.1 <4]")
elif self.options.crypto_backend == "mbedtls":
# libssh2/<=1.10.0 doesn't support mbedtls/3.x.x
self.requires("mbedtls/2.25.0")
if Version(self.version) >= "1.11":
self.requires("mbedtls/3.5.0")
else:
self.requires("mbedtls/2.28.4")

def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)
Expand Down

0 comments on commit 106f57e

Please sign in to comment.