From c45631e0d8d2de6f44c618408a187645fe48e16e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 9 Apr 2022 19:01:52 +0000 Subject: Prepare for 2.5.1.1; adapt to skalibs-2.12.0.0 Signed-off-by: Laurent Bercot --- src/sbearssl/sbearssl_client_init_and_run.c | 3 +-- src/sbearssl/sbearssl_server_init_and_run.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/sbearssl') diff --git a/src/sbearssl/sbearssl_client_init_and_run.c b/src/sbearssl/sbearssl_client_init_and_run.c index a7d91e4..ab9d12d 100644 --- a/src/sbearssl/sbearssl_client_init_and_run.c +++ b/src/sbearssl/sbearssl_client_init_and_run.c @@ -79,8 +79,7 @@ void sbearssl_client_init_and_run (int *fds, tain const *tto, uint32_t preoption } br_ssl_engine_add_flags(&cc.eng, BR_OPT_NO_RENEGOTIATION) ; - random_string((char *)buf, 32) ; - random_finish() ; + random_buf((char *)buf, 32) ; br_ssl_engine_inject_entropy(&cc.eng, buf, 32) ; br_ssl_engine_set_buffer(&cc.eng, buf, sizeof(buf), 1) ; if (!br_ssl_client_reset(&cc, servername, 0)) diff --git a/src/sbearssl/sbearssl_server_init_and_run.c b/src/sbearssl/sbearssl_server_init_and_run.c index 984e54e..41d4d9e 100644 --- a/src/sbearssl/sbearssl_server_init_and_run.c +++ b/src/sbearssl/sbearssl_server_init_and_run.c @@ -82,8 +82,7 @@ void sbearssl_server_init_and_run (int *fds, tain const *tto, uint32_t preoption sbearssl_sctx_init_full_generic(&sc) ; sbearssl_sctx_set_policy_sni(&sc, &pol) ; - random_string((char *)buf, 32) ; - random_finish() ; + random_buf((char *)buf, 32) ; br_ssl_engine_inject_entropy(&sc.eng, buf, 32) ; br_ssl_engine_set_buffer(&sc.eng, buf, sizeof(buf), 1) ; -- cgit v1.2.3