push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
From 5f9d4458f05c5d9f4b416de867fd9327aba865d5 Mon Sep 17 00:00:00 2001
From: Dirk-Willem van Gulik <dirkx@redwax.eu>
Date: Fri, 21 Jan 2022 21:53:49 +0100
Subject: [PATCH] DEFINE_STACK_OF(EVP_MD) seems to have gone; recreate it. And
quell a warning.
---
mod_timestamp.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/mod_timestamp.c b/mod_timestamp.c
index 289d50a..54af7c8 100644
--- a/mod_timestamp.c
+++ b/mod_timestamp.c
@@ -41,6 +41,14 @@
#include "mod_ca.h"
+#ifndef sk_EVP_MD_free
+/* Recent versions of OpenSSL seem to no longer define
+ * a stack of EVP_MD's.
+ */
+#include <openssl/safestack.h>
+DEFINE_STACK_OF(EVP_MD)
+#endif
+
#define DEFAULT_TIMESTAMP_SIZE 128*1024
module AP_MODULE_DECLARE_DATA timestamp_module;
@@ -360,7 +368,7 @@ static const char *add_timestamp_digest(cmd_parms *cmd, void *dconf,
return apr_psprintf(cmd->pool,
"'%s' could not be recognised as a valid digest.", arg);
}
- if (!sk_EVP_MD_push(conf->digests, digest)) {
+ if (!sk_EVP_MD_push(conf->digests, (EVP_MD *)digest)) {
return apr_psprintf(cmd->pool,
"'%s' could not be added as a valid digest.", arg);
}
--
2.49.0

View File

@@ -0,0 +1,53 @@
{
apr,
aprutil,
directoryListingUpdater,
fetchurl,
lib,
mod_ca,
pkg-config,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "mod_timestamp";
version = "0.2.3";
src = fetchurl {
url = "https://redwax.eu/dist/rs/${pname}-${version}.tar.gz";
hash = "sha256-X49gJ1wQtwQT3GOZkluxdMIY2ZRpM9Y7DZln6Ag9DvM=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
apr
aprutil
mod_ca
];
# FIXME: remove after next release after 0.2.3
patches = [ ./0001-DEFINE_STACK_OF-EVP_MD-seems-to-have-gone-recreate-i.patch ];
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.cc.isClang [
"-Wno-error=int-conversion"
"-Wno-error=implicit-function-declaration"
]
);
inherit (mod_ca) configureFlags installFlags;
passthru.updateScript = directoryListingUpdater {
url = "https://redwax.eu/dist/rs/";
};
meta = with lib; {
description = "RedWax CA service module for issuing signed timestamps";
homepage = "https://redwax.eu";
changelog = "https://source.redwax.eu/projects/RS/repos/mod_timestamp/browse/ChangeLog";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ dirkx ];
};
}