summaryrefslogtreecommitdiff
path: root/usr.sbin/acme-client
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2021-07-14 13:33:58 +0000
committerkn <kn@cvs.openbsd.org>2021-07-14 13:33:58 +0000
commitb7fd9c519af47607fd45dbe6c53ce93bb54552e9 (patch)
treef099fd0993fc920ef5fbd7a6bbf85e2527533993 /usr.sbin/acme-client
parentb72d54390aa00f39d2c6a8433803bb650e7de983 (diff)
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
Diffstat (limited to 'usr.sbin/acme-client')
-rw-r--r--usr.sbin/acme-client/http.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/acme-client/http.c b/usr.sbin/acme-client/http.c
index 17298814382..d22a4f55fca 100644
--- a/usr.sbin/acme-client/http.c
+++ b/usr.sbin/acme-client/http.c
@@ -1,4 +1,4 @@
-/* $Id: http.c,v 1.29 2020/01/20 22:10:27 sthen Exp $ */
+/* $Id: http.c,v 1.30 2021/07/14 13:33:57 kn Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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");