From ecf974d2068ea3567fbffbacf1bb3be466d461c7 Mon Sep 17 00:00:00 2001 From: kn <> Date: Wed, 14 Jul 2021 13:33:57 +0000 Subject: Remove unneeded calls to tls_init(3) As per the manual and lib/libtls/tls.c revision 1.79 from 2018 "Automatically handle library initialisation for libtls." initialisation is handled automatically by other tls_*(3) functions. Remove explicit tls_init() calls from base to not give the impression of it being needed. Feedback tb OK Tests mestre --- src/usr.sbin/ocspcheck/http.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/usr.sbin/ocspcheck/http.c b/src/usr.sbin/ocspcheck/http.c index 6666bb070c..6a19ad31cb 100644 --- a/src/usr.sbin/ocspcheck/http.c +++ b/src/usr.sbin/ocspcheck/http.c @@ -1,4 +1,4 @@ -/* $Id: http.c,v 1.13 2020/01/11 17:37:19 sthen Exp $ */ +/* $Id: http.c,v 1.14 2021/07/14 13:33:57 kn Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -124,11 +124,6 @@ http_init() if (tlscfg != NULL) return 0; - if (tls_init() == -1) { - warn("tls_init"); - goto err; - } - tlscfg = tls_config_new(); if (tlscfg == NULL) { warn("tls_config_new"); -- cgit v1.2.3-55-g6feb