summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd
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/httpd
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/httpd')
-rw-r--r--usr.sbin/httpd/server.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/httpd/server.c b/usr.sbin/httpd/server.c
index 5ec3fac6a29..90a47d67c80 100644
--- a/usr.sbin/httpd/server.c
+++ b/usr.sbin/httpd/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.125 2021/04/10 10:10:07 claudio Exp $ */
+/* $OpenBSD: server.c,v 1.126 2021/07/14 13:33:57 kn Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
@@ -245,10 +245,6 @@ server_tls_init(struct server *srv)
log_debug("%s: setting up tls for %s", __func__, srv->srv_conf.name);
- if (tls_init() != 0) {
- log_warnx("%s: failed to initialise tls", __func__);
- return (-1);
- }
if ((srv->srv_tls_config = tls_config_new()) == NULL) {
log_warnx("%s: failed to get tls config", __func__);
return (-1);