Skip to content

Commit

Permalink
handle openssl 3.x in msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Apr 18, 2023
1 parent 22f8559 commit 7fe7f43
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion recipes/xmlsec/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,15 @@ def build(self):
crypto_engines = []
if self.options.with_openssl:
ov = Version(self.dependencies["openssl"].ref.version)
crypto_engines.append(f"openssl={ov.major}{ov.minor}0")
if ov.major >= "3":
if Version(self.version) < "1.2.35":
# configure.js doesn't understand openssl=300 before xmlsec 1.2.35,
# For these xmlsec versions, setting 110 even for OpenSSL 3.x should be compatible
crypto_engines.append("openssl=110")
else:
crypto_engines.append("openssl=300")
else:
crypto_engines.append(f"openssl={ov.major}{ov.minor}0")

yes_no = lambda v: "yes" if v else "no"
args = [
Expand Down

0 comments on commit 7fe7f43

Please sign in to comment.