Skip to content

Commit

Permalink
(#25426) wolfssl: add version 5.7.2
Browse files Browse the repository at this point in the history
* wolfssl: add version 5.7.2

* adding cmake/3.22

---------

Co-authored-by: Ernesto de Gracia Herranz <[email protected]>
  • Loading branch information
toge and ErniGH authored Sep 26, 2024
1 parent 5cfa6c8 commit b319d7e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions recipes/wolfssl/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"5.7.2":
url: "https://github.com/wolfSSL/wolfssl/archive/v5.7.2-stable.tar.gz"
sha256: "0f2ed82e345b833242705bbc4b08a2a2037a33f7bf9c610efae6464f6b10e305"
"5.7.0":
url: "https://github.com/wolfSSL/wolfssl/archive/v5.7.0-stable.tar.gz"
sha256: "2de93e8af588ee856fe67a6d7fce23fc1b226b74d710b0e3946bc8061f6aa18f"
Expand Down
13 changes: 10 additions & 3 deletions recipes/wolfssl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

class WolfSSLConan(ConanFile):
name = "wolfssl"
license = "GPL-2.0-or-later"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://www.wolfssl.com/"
description = (
"wolfSSL (formerly CyaSSL) is a small, fast, portable implementation "
"of TLS/SSL for embedded devices to the cloud."
)
license = "GPL-2.0-or-later"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://www.wolfssl.com/"
topics = ("wolfssl", "tls", "ssl", "iot", "fips", "secure", "cryptology", "secret")
package_type = "library"
settings = "os", "arch", "compiler", "build_type"
Expand All @@ -42,6 +42,7 @@ class WolfSSLConan(ConanFile):
"with_curl": [True, False],
"with_quic": [True, False],
"with_experimental": [True, False],
"with_rpk": [True, False],
}
default_options = {
"shared": False,
Expand All @@ -61,6 +62,7 @@ class WolfSSLConan(ConanFile):
"with_curl": False,
"with_quic": False,
"with_experimental": False,
"with_rpk": False,
}

@property
Expand All @@ -76,6 +78,8 @@ def config_options(self):
del self.options.with_quic
if Version(self.version) < "5.7.0":
del self.options.with_experimental
if Version(self.version) < "5.7.2":
del self.options.with_rpk

def configure(self):
if self.options.shared:
Expand All @@ -92,6 +96,7 @@ def validate(self):

def build_requirements(self):
self.tool_requires("libtool/2.4.7")
self.tool_requires("cmake/[>=3.22 <4]")
if self._settings_build.os == "Windows":
self.win_bash = True
if not self.conf.get("tools.microsoft.bash:path", check_type=str):
Expand Down Expand Up @@ -132,6 +137,8 @@ def generate(self):
tc.configure_args.append("--enable-quic")
if self.options.get_safe("with_experimental"):
tc.configure_args.append("--enable-experimental")
if self.options.get_safe("with_rpk"):
tc.configure_args.append("--enable-rpk")
if is_msvc(self):
tc.extra_ldflags.append("-ladvapi32")
if check_min_vs(self, "180", raise_invalid=False):
Expand Down
2 changes: 2 additions & 0 deletions recipes/wolfssl/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"5.7.2":
folder: all
"5.7.0":
folder: all
"5.6.6":
Expand Down

0 comments on commit b319d7e

Please sign in to comment.