summaryrefslogtreecommitdiff
path: root/src/libtipidee/tipidee_response_header_writeall_G.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-12-04 07:22:53 +0000
committerLaurent Bercot <ska@appnovation.com>2023-12-04 07:22:53 +0000
commite3c075c72d6b7b64c869b4cb0c0ff128b1d084cd (patch)
treedcb810bb5aa6a853672c6d8e749df508a2ae4e53 /src/libtipidee/tipidee_response_header_writeall_G.c
parent691c9878f41d6646af38f417b23dfc72644a8c96 (diff)
downloadtipidee-e3c075c72d6b7b64c869b4cb0c0ff128b1d084cd.tar.xz
Use wallclock time for Date header in responses
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee/tipidee_response_header_writeall_G.c')
-rw-r--r--src/libtipidee/tipidee_response_header_writeall_G.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_response_header_writeall_G.c b/src/libtipidee/tipidee_response_header_writeall_G.c
new file mode 100644
index 0000000..b448395
--- /dev/null
+++ b/src/libtipidee/tipidee_response_header_writeall_G.c
@@ -0,0 +1,12 @@
+/* ISC license. */
+
+#include <skalibs/tai.h>
+
+#include <tipidee/response.h>
+
+size_t tipidee_response_header_writeall_G (buffer *b, tipidee_response_header const *rhdr, uint32_t rhdrn, uint32_t options)
+{
+ tain wstamp ;
+ tain_wallclock_read(&wstamp) ;
+ return tipidee_response_header_writeall(b, rhdr, rhdrn, options, &wstamp) ;
+}