From 24d1860868682d33f60970119b1cff1bf088a497 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 11 Nov 2023 23:55:28 +0000 Subject: New and fixed version of sbearssl_run Signed-off-by: Laurent Bercot --- src/tls/s6-tlsc-io.c | 6 +++--- src/tls/s6-tlsd-io.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/tls') diff --git a/src/tls/s6-tlsc-io.c b/src/tls/s6-tlsc-io.c index 633d349..57b1442 100644 --- a/src/tls/s6-tlsc-io.c +++ b/src/tls/s6-tlsc-io.c @@ -73,7 +73,7 @@ int main (int argc, char const *const *argv, char const *const *envp) unsigned int verbosity = 1 ; unsigned int notif = 0 ; uint32_t preoptions = 0 ; - uint32_t options = 1 ; + uint32_t options = 2 ; PROG = "s6-tlsc-io" ; { @@ -87,8 +87,8 @@ int main (int argc, char const *const *argv, char const *const *envp) { case 'v' : if (!uint0_scan(l.arg, &verbosity)) dieusage() ; break ; case 'd' : if (!uint0_scan(l.arg, ¬if)) dieusage() ; break ; - case 'S' : options &= ~1 ; break ; - case 's' : options |= 1 ; break ; + case 'S' : options |= 1 ; break ; + case 's' : options &= ~1 ; break ; case 'Y' : preoptions &= ~1 ; break ; case 'y' : preoptions |= 1 ; break ; case 'K' : if (!uint0_scan(l.arg, &t)) dieusage() ; break ; diff --git a/src/tls/s6-tlsd-io.c b/src/tls/s6-tlsd-io.c index d58a259..0aa19c9 100644 --- a/src/tls/s6-tlsd-io.c +++ b/src/tls/s6-tlsd-io.c @@ -70,7 +70,7 @@ int main (int argc, char const *const *argv) unsigned int verbosity = 1 ; unsigned int notif = 0 ; uint32_t preoptions = 0 ; - uint32_t options = 1 ; + uint32_t options = 0 ; PROG = "s6-tlsd-io" ; { @@ -84,8 +84,8 @@ int main (int argc, char const *const *argv) { case 'v' : if (!uint0_scan(l.arg, &verbosity)) dieusage() ; break ; case 'd' : if (!uint0_scan(l.arg, ¬if)) dieusage() ; break ; - case 'S' : options &= ~1 ; break ; - case 's' : options |= 1 ; break ; + case 'S' : options |= 1 ; break ; + case 's' : options &= ~1 ; break ; case 'Y' : preoptions |= 1 ; preoptions &= ~2 ; break ; case 'y' : preoptions |= 3 ; break ; case 'K' : if (!uint0_scan(l.arg, &t)) dieusage() ; break ; -- cgit v1.2.3