summaryrefslogtreecommitdiff
path: root/src/tls
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-04-09 19:01:52 +0000
committerLaurent Bercot <ska@appnovation.com>2022-04-09 19:01:52 +0000
commitc45631e0d8d2de6f44c618408a187645fe48e16e (patch)
treecff4ec7e469b140bf15f19bea0110d5eb1cf450e /src/tls
parentb51c1b1911e97c552d99f8a00698bbae30229ce0 (diff)
downloads6-networking-c45631e0d8d2de6f44c618408a187645fe48e16e.tar.xz
Prepare for 2.5.1.1; adapt to skalibs-2.12.0.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tls')
-rw-r--r--src/tls/s6-tlsc-io.c3
-rw-r--r--src/tls/s6-tlsd-io.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/src/tls/s6-tlsc-io.c b/src/tls/s6-tlsc-io.c
index 0070f8e..98e80e9 100644
--- a/src/tls/s6-tlsc-io.c
+++ b/src/tls/s6-tlsc-io.c
@@ -39,8 +39,6 @@ static inline void doit (int *fds, tain const *tto, uint32_t preoptions, uint32_
#include <bearssl.h>
-#include <skalibs/random.h>
-
#include <s6-networking/sbearssl.h>
static int handshake_cb (br_ssl_engine_context *ctx, sbearssl_handshake_cbarg *cbarg)
@@ -56,7 +54,6 @@ static int handshake_cb (br_ssl_engine_context *ctx, sbearssl_handshake_cbarg *c
static inline void doit (int *fds, tain const *tto, uint32_t preoptions, uint32_t options, unsigned int verbosity, char const *servername, unsigned int notif)
{
sbearssl_handshake_cbarg cbarg = SBEARSSL_HANDSHAKE_CBARG_ZERO ;
- if (!random_init()) strerr_diefu1sys(111, "initialize random device") ;
cbarg.notif = notif ;
sbearssl_client_init_and_run(fds, tto, preoptions, options, verbosity, servername, &handshake_cb, &cbarg) ;
}
diff --git a/src/tls/s6-tlsd-io.c b/src/tls/s6-tlsd-io.c
index c8641b2..d013606 100644
--- a/src/tls/s6-tlsd-io.c
+++ b/src/tls/s6-tlsd-io.c
@@ -37,8 +37,6 @@ static inline void doit (int *fds, tain const *tto, uint32_t preoptions, uint32_
#else
#ifdef S6_NETWORKING_USE_BEARSSL
-#include <skalibs/random.h>
-
#include <s6-networking/sbearssl.h>
static int handshake_cb (br_ssl_engine_context *ctx, sbearssl_handshake_cbarg *cbarg)
@@ -54,7 +52,6 @@ static int handshake_cb (br_ssl_engine_context *ctx, sbearssl_handshake_cbarg *c
static inline void doit (int *fds, tain const *tto, uint32_t preoptions, uint32_t options, unsigned int verbosity, unsigned int notif)
{
sbearssl_handshake_cbarg cbarg = SBEARSSL_HANDSHAKE_CBARG_ZERO ;
- if (!random_init()) strerr_diefu1sys(111, "initialize random device") ;
cbarg.notif = notif ;
sbearssl_server_init_and_run(fds, tto, preoptions, options, verbosity, &handshake_cb, &cbarg) ;
}