From 26597a785ec2dd4e9ec9fb7d9765d2ee8779ee16 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 16 Nov 2023 05:13:06 +0000 Subject: Add -J and -j to the TLS tools to check for peer close_notify. Also, and more importantly, significantly rewrite stls_run() for better full-duplex support. This implementation isn't fully tested yet. Signed-off-by: Laurent Bercot --- src/include/s6-networking/stls.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/s6-networking/stls.h b/src/include/s6-networking/stls.h index e9f6136..2eefe36 100644 --- a/src/include/s6-networking/stls.h +++ b/src/include/s6-networking/stls.h @@ -8,15 +8,16 @@ #include #include +#include #include -#define STLS_BUFSIZE (16384 + 325 + 1) +#define STLS_BUFSIZE 16384 /* Engine */ extern int stls_send_environment (struct tls *, int) ; -extern void stls_run (struct tls *, int *, uint32_t, unsigned int) gccattr_noreturn ; +extern void stls_run (struct tls *, int const *, uint32_t, unsigned int) gccattr_noreturn ; /* s6-tlsc-io and s6-tlsd-io */ -- cgit v1.3.1