diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-08 19:38:35 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-09-08 19:38:35 +0000 |
| commit | fdd1f0c0ec33575a78b589b46d095c3a4a0d8510 (patch) | |
| tree | 231894189c8baf3833418afe1e9fc6587c19d091 /src/tls/s6tls_prep_tlsdio.c | |
| parent | 7113c4cf792ec44ec04a54e9723fa31a97bee5a7 (diff) | |
| download | s6-networking-fdd1f0c0ec33575a78b589b46d095c3a4a0d8510.tar.gz | |
Fully defork s6-tlsc and s6-tlsd
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tls/s6tls_prep_tlsdio.c')
| -rw-r--r-- | src/tls/s6tls_prep_tlsdio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tls/s6tls_prep_tlsdio.c b/src/tls/s6tls_prep_tlsdio.c index 942425b..947cf70 100644 --- a/src/tls/s6tls_prep_tlsdio.c +++ b/src/tls/s6tls_prep_tlsdio.c @@ -5,7 +5,7 @@ #include <s6-networking/config.h> #include "s6tls-internal.h" -void s6tls_prep_tlsdio (char const **argv, char *buf, int fdr, int fdw, int fdnotif, uint32_t options, unsigned int verbosity, unsigned int kimeout, unsigned int snilevel) +void s6tls_prep_tlsdio (char const **argv, char *buf, int const p[4][2], uint32_t options, unsigned int verbosity, unsigned int kimeout, unsigned int snilevel) { size_t m = 0 ; size_t n = 0 ; @@ -18,11 +18,11 @@ void s6tls_prep_tlsdio (char const **argv, char *buf, int fdr, int fdw, int fdno n += uint_fmt(buf + n, verbosity) ; buf[n++] = 0 ; } - if (fdnotif) + if (p[2][1]) { argv[m++] = "-d" ; argv[m++] = buf + n ; - n += uint_fmt(buf + n, fdnotif) ; + n += uint_fmt(buf + n, p[2][1]) ; buf[n++] = 0 ; } argv[m++] = options & 4 ? "-S" : "-s" ; @@ -44,10 +44,10 @@ void s6tls_prep_tlsdio (char const **argv, char *buf, int fdr, int fdw, int fdno } argv[m++] = "--" ; argv[m++] = buf + n ; - n += uint_fmt(buf + n, fdr) ; + n += uint_fmt(buf + n, p[0][0]) ; buf[n++] = 0 ; argv[m++] = buf + n ; - n += uint_fmt(buf + n, fdw) ; + n += uint_fmt(buf + n, p[1][1]) ; buf[n++] = 0 ; argv[m++] = 0 ; } |
