diff --git a/recipes/openssl/1.x.x/conanfile.py b/recipes/openssl/1.x.x/conanfile.py index fcb4544dee125..eb10a589c8c69 100644 --- a/recipes/openssl/1.x.x/conanfile.py +++ b/recipes/openssl/1.x.x/conanfile.py @@ -138,6 +138,7 @@ class OpenSSLConan(ConanFile): } default_options = {key: False for key in options.keys()} default_options["fPIC"] = True + default_options["no_md2"] = True default_options["openssldir"] = None _env_build = None @@ -517,6 +518,9 @@ def _configure_args(self): args.append("-DOPENSSL_CAPIENG_DIALOG=1") else: args.append("-fPIC" if self.options.get_safe("fPIC", True) else "no-pic") + + args.append("no-md2" if self.options.get_safe("no_md2", True) else "enable-md2") + if self.settings.os == "Neutrino": args.append("no-asm -lsocket -latomic") if self._is_clangcl: @@ -547,7 +551,7 @@ def _configure_args(self): for option_name in self.options.values.fields: activated = getattr(self.options, option_name) - if activated and option_name not in ["fPIC", "openssldir", "capieng_dialog", "enable_capieng"]: + if activated and option_name not in ["fPIC", "openssldir", "capieng_dialog", "enable_capieng", "no_md2"]: self.output.info("activated option: %s" % option_name) args.append(option_name.replace("_", "-")) return args diff --git a/recipes/openssl/3.x.x/conanfile.py b/recipes/openssl/3.x.x/conanfile.py index 29f9f88b8dd0f..ecc7971457bb0 100644 --- a/recipes/openssl/3.x.x/conanfile.py +++ b/recipes/openssl/3.x.x/conanfile.py @@ -82,6 +82,7 @@ class OpenSSLConan(ConanFile): } default_options = {key: False for key in options.keys()} default_options["fPIC"] = True + default_options["no_md2"] = True default_options["openssldir"] = None @property @@ -406,6 +407,7 @@ def _configure_args(self): args.append("-fPIC" if self.options.get_safe("fPIC", True) else "no-pic") args.append("no-fips" if self.options.get_safe("no_fips", True) else "enable-fips") + args.append("no-md2" if self.options.get_safe("no_md2", True) else "enable-md2") if self.settings.os == "Neutrino": args.append("no-asm -lsocket -latomic") @@ -434,7 +436,7 @@ def _configure_args(self): ]) for option_name in self.options.values.fields: - if self.options.get_safe(option_name, False) and option_name not in ("shared", "fPIC", "openssldir", "capieng_dialog", "enable_capieng", "zlib", "no_fips"): + if self.options.get_safe(option_name, False) and option_name not in ("shared", "fPIC", "openssldir", "capieng_dialog", "enable_capieng", "zlib", "no_fips", "no_md2"): self.output.info(f"Activated option: {option_name}") args.append(option_name.replace("_", "-")) return args