diff options
author | kn <> | 2021-07-14 13:33:57 +0000 |
---|---|---|
committer | kn <> | 2021-07-14 13:33:57 +0000 |
commit | ecf974d2068ea3567fbffbacf1bb3be466d461c7 (patch) | |
tree | 3865be6d86f3e59123083622e0055e409f43ff39 | |
parent | 6cfd478073c3b1af028436e0f3ec427615a5eb6e (diff) | |
download | openbsd-ecf974d2068ea3567fbffbacf1bb3be466d461c7.tar.gz openbsd-ecf974d2068ea3567fbffbacf1bb3be466d461c7.tar.bz2 openbsd-ecf974d2068ea3567fbffbacf1bb3be466d461c7.zip |
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
-rw-r--r-- | src/usr.sbin/ocspcheck/http.c | 7 |
1 files changed, 1 insertions, 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 @@ | |||
1 | /* $Id: http.c,v 1.13 2020/01/11 17:37:19 sthen Exp $ */ | 1 | /* $Id: http.c,v 1.14 2021/07/14 13:33:57 kn Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> | 3 | * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> |
4 | * | 4 | * |
@@ -124,11 +124,6 @@ http_init() | |||
124 | if (tlscfg != NULL) | 124 | if (tlscfg != NULL) |
125 | return 0; | 125 | return 0; |
126 | 126 | ||
127 | if (tls_init() == -1) { | ||
128 | warn("tls_init"); | ||
129 | goto err; | ||
130 | } | ||
131 | |||
132 | tlscfg = tls_config_new(); | 127 | tlscfg = tls_config_new(); |
133 | if (tlscfg == NULL) { | 128 | if (tlscfg == NULL) { |
134 | warn("tls_config_new"); | 129 | warn("tls_config_new"); |