diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-07-11 08:26:28 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-07-11 08:26:28 +0000 |
commit | 29c15dc7f169bf54b66b213bbb9d03ecce43722c (patch) | |
tree | 5c5052cda5de1c24fc4ac3634eb1bcaab6169516 | |
parent | f5ee3c1da56fcbaba6819dca140e0df373e99862 (diff) |
open /dev/crypto with OpenSSL_add_all_algorithms() before calling chroot;
-rw-r--r-- | usr.sbin/httpd/src/main/http_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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."); |