Skip to content

Commit

Permalink
(#19490) Add an option to support QUIC protocol to wolfssl
Browse files Browse the repository at this point in the history
* Add an option to support QUIC protocol to wolfssl

* Fix self.options override and error message

---------

Co-authored-by: PerseoGI <[email protected]>
Co-authored-by: Francisco Ramirez de Anton <[email protected]>
  • Loading branch information
3 people authored Jul 3, 2024
1 parent e718b4e commit a4b4b08
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion recipes/wolfssl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class WolfSSLConan(ConanFile):
"sni": [True, False],
"testcert": [True, False],
"with_curl": [True, False],
"with_quic": [True, False],
"with_experimental": [True, False],
}
default_options = {
Expand All @@ -58,6 +59,7 @@ class WolfSSLConan(ConanFile):
"sni": False,
"testcert": False,
"with_curl": False,
"with_quic": False,
"with_experimental": False,
}

Expand All @@ -70,6 +72,8 @@ def config_options(self):
del self.options.fPIC
if Version(self.version) < "5.2.0":
del self.options.with_curl
if Version(self.version) < "5.5.0":
del self.options.with_quic
if Version(self.version) < "5.7.0":
del self.options.with_experimental

Expand Down Expand Up @@ -112,7 +116,7 @@ def generate(self):
"--enable-sslv3={}".format(yes_no(self.options.sslv3)),
"--enable-alpn={}".format(yes_no(self.options.alpn)),
"--enable-des3={}".format(yes_no(self.options.des3)),
"--enable-tls13={}".format(yes_no(self.options.tls13)),
"--enable-tls13={}".format(yes_no(self.options.tls13 or self.options.get_safe("with_quic"))),
"--enable-certgen={}".format(yes_no(self.options.certgen)),
"--enable-dsa={}".format(yes_no(self.options.dsa)),
"--enable-ripemd={}".format(yes_no(self.options.ripemd)),
Expand All @@ -124,6 +128,8 @@ def generate(self):
])
if self.options.get_safe("with_curl"):
tc.configure_args.append("--enable-curl")
if self.options.get_safe("with_quic"):
tc.configure_args.append("--enable-quic")
if self.options.get_safe("with_experimental"):
tc.configure_args.append("--enable-experimental")
if is_msvc(self):
Expand Down

0 comments on commit a4b4b08

Please sign in to comment.