diff --git a/recipes/xmlsec/all/conanfile.py b/recipes/xmlsec/all/conanfile.py index 97571ee991734b..33aa7afe74740d 100644 --- a/recipes/xmlsec/all/conanfile.py +++ b/recipes/xmlsec/all/conanfile.py @@ -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 = [