From 6be6702d45f339801a6a04a0d9414bfafafe2e43 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Wed, 28 Aug 2024 09:45:56 +0200 Subject: [PATCH] openssl: expose 'enable-md2' option needed e.g. to build `onlyoffice-documentserver` from source --- pkgs/development/libraries/openssl/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 5ddb26798af5..c565d9084ee2 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -4,6 +4,7 @@ , withZlib ? false, zlib , enableSSL2 ? false , enableSSL3 ? false +, enableMD2 ? false , enableKTLS ? stdenv.isLinux , static ? stdenv.hostPlatform.isStatic # path to openssl.cnf file. will be placed in $etc/etc/ssl/openssl.cnf to replace the default @@ -128,7 +129,8 @@ let ] ++ lib.optionals withCryptodev [ "-DHAVE_CRYPTODEV" "-DUSE_CRYPTODEV_DIGESTS" - ] ++ lib.optional enableSSL2 "enable-ssl2" + ] ++ lib.optional enableMD2 "enable-md2" + ++ lib.optional enableSSL2 "enable-ssl2" ++ lib.optional enableSSL3 "enable-ssl3" # We select KTLS here instead of the configure-time detection (which we patch out). # KTLS should work on FreeBSD 13+ as well, so we could enable it if someone tests it.