From 29c15dc7f169bf54b66b213bbb9d03ecce43722c Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Thu, 11 Jul 2002 08:26:28 +0000 Subject: open /dev/crypto with OpenSSL_add_all_algorithms() before calling chroot; --- usr.sbin/httpd/src/main/http_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.sbin/httpd/src/main/http_main.c b/usr.sbin/httpd/src/main/http_main.c index e42834f0009..49fc0d25ad1 100644 --- a/usr.sbin/httpd/src/main/http_main.c +++ b/usr.sbin/httpd/src/main/http_main.c @@ -5147,6 +5147,10 @@ static void standalone_main(int argc, char **argv) version_locked++; /* no more changes to server_version */ if(!is_graceful && ap_server_chroot) { + + /* initialize /dev/crypto, XXX check for -DSSL option */ + OpenSSL_add_all_algorithms(); + if (geteuid()) { ap_log_error(APLOG_MARK, APLOG_ALERT, server_conf, "can't run in secure mode if not started with root privs."); -- cgit v1.2.3