summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hoststated/ssl.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2007-02-22 03:32:39 +0000
committerreyk <reyk@openbsd.org>2007-02-22 03:32:39 +0000
commit2edd718bd68a9c827be137ebb51a319071210c69 (patch)
tree8c1c5b888f71aa148d70db79b9527a623ad5e0be /usr.sbin/hoststated/ssl.c
parentExpand description. (diff)
downloadwireguard-openbsd-2edd718bd68a9c827be137ebb51a319071210c69.tar.xz
wireguard-openbsd-2edd718bd68a9c827be137ebb51a319071210c69.zip
Add layer 7 functionality to hoststated used for layer 7
loadbalancing, SSL acceleration, general-purpose TCP relaying, and transparent proxying. see hoststated.conf(5) and my upcoming article on undeadly.org for details. ok to commit deraadt@ pyr@
Diffstat (limited to 'usr.sbin/hoststated/ssl.c')
-rw-r--r--usr.sbin/hoststated/ssl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/hoststated/ssl.c b/usr.sbin/hoststated/ssl.c
index ddac5c5974c..cf5016d69e7 100644
--- a/usr.sbin/hoststated/ssl.c
+++ b/usr.sbin/hoststated/ssl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.c,v 1.6 2007/02/08 13:32:24 reyk Exp $ */
+/* $OpenBSD: ssl.c,v 1.7 2007/02/22 03:32:40 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -32,6 +32,7 @@
#include <openssl/ssl.h>
#include <openssl/err.h>
+#include <openssl/engine.h>
#include "hoststated.h"
@@ -250,6 +251,10 @@ ssl_init(struct hoststated *env)
{
SSL_library_init();
SSL_load_error_strings();
+
+ /* Init hardware crypto engines. */
+ ENGINE_load_builtin_engines();
+ ENGINE_register_all_complete();
}
void