diff --git a/recipes/openssl/3.x.x/test_package/conanfile.py b/recipes/openssl/3.x.x/test_package/conanfile.py index 76d2cc26c1df0c..0dc8825448944a 100644 --- a/recipes/openssl/3.x.x/test_package/conanfile.py +++ b/recipes/openssl/3.x.x/test_package/conanfile.py @@ -16,15 +16,15 @@ def requirements(self): self.requires(self.tested_reference_str) def _with_legacy(self): - return (not self.dependencies["openssl"].options.no_legacy and - ((not self.dependencies["openssl"].options.no_md4) or - (not self.dependencies["openssl"].options.no_rmd160))) + return (not self.dependencies[self.tested_reference_str].options.no_legacy and + ((not self.dependencies[self.tested_reference_str].options.no_md4) or + (not self.dependencies[self.tested_reference_str].options.no_rmd160))) def generate(self): tc = CMakeToolchain(self) tc.cache_variables["OPENSSL_WITH_LEGACY"] = self._with_legacy() - tc.cache_variables["OPENSSL_WITH_MD4"] = not self.dependencies["openssl"].options.no_md4 - tc.cache_variables["OPENSSL_WITH_RIPEMD160"] = not self.dependencies["openssl"].options.no_rmd160 + tc.cache_variables["OPENSSL_WITH_MD4"] = not self.dependencies[self.tested_reference_str].options.no_md4 + tc.cache_variables["OPENSSL_WITH_RIPEMD160"] = not self.dependencies[self.tested_reference_str].options.no_rmd160 tc.generate() def build(self):