From 9549e0518dc38697b5035adbe890644950535e18 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 19 Nov 2021 15:41:40 +0000 Subject: Add sbearssl_*_set_tain(n)_g convenience macros Signed-off-by: Laurent Bercot --- src/sbearssl/sbearssl_client_init_and_run.c | 2 +- src/sbearssl/sbearssl_server_init_and_run.c | 2 +- 2 files changed, 2 insertions(+), 2 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 e32f146..a7d91e4 100644 --- a/src/sbearssl/sbearssl_client_init_and_run.c +++ b/src/sbearssl/sbearssl_client_init_and_run.c @@ -45,7 +45,7 @@ void sbearssl_client_init_and_run (int *fds, tain const *tto, uint32_t preoption br_ssl_client_init_full(&cc, &dummy, btas, n) ; } sbearssl_x509_small_init_full(&xc, btas, n, &cbarg->eedn, &cbarg->eltstatus, cbarg->eehash) ; - if (!sbearssl_x509_small_set_tain(&xc, &STAMP)) + if (!sbearssl_x509_small_set_tain_g(&xc)) strerr_diefu1sys(111, "initialize validation time") ; br_ssl_engine_set_x509(&cc.eng, &xc.vtable) ; cbarg->exportmask |= 3 ; diff --git a/src/sbearssl/sbearssl_server_init_and_run.c b/src/sbearssl/sbearssl_server_init_and_run.c index be12c66..984e54e 100644 --- a/src/sbearssl/sbearssl_server_init_and_run.c +++ b/src/sbearssl/sbearssl_server_init_and_run.c @@ -99,7 +99,7 @@ void sbearssl_server_init_and_run (int *fds, tain const *tto, uint32_t preoption sbearssl_ta_to(genalloc_s(sbearssl_ta, &tas) + i, btas + i, tastorage.s) ; genalloc_free(sbearssl_ta, &tas) ; sbearssl_x509_small_init_full(&xc, btas, n, &cbarg->eedn, &cbarg->eltstatus, cbarg->eehash) ; - if (!sbearssl_x509_small_set_tain(&xc, &STAMP)) + if (!sbearssl_x509_small_set_tain_g(&xc)) strerr_diefu1sys(111, "initialize validation time") ; br_ssl_engine_set_default_rsavrfy(&sc.eng) ; br_ssl_engine_set_default_ecdsa(&sc.eng) ; -- cgit v1.2.3