diff options
| author | 2001-04-13 18:11:59 +0000 | |
|---|---|---|
| committer | 2001-04-13 18:11:59 +0000 | |
| commit | 9662a55334ae6dce8db18b13ed6a0825d3dc9389 (patch) | |
| tree | febc6778bc563e1d606d27257ceb2f7176a56b1d /usr.sbin/httpd/src/modules/ssl/ssl_engine_kernel.c | |
| parent | - rx buffer ring management (working) (diff) | |
| download | wireguard-openbsd-9662a55334ae6dce8db18b13ed6a0825d3dc9389.tar.xz wireguard-openbsd-9662a55334ae6dce8db18b13ed6a0825d3dc9389.zip | |
merge mod_ssl 2.8.2
--
Ok'd by: beck@
Diffstat (limited to 'usr.sbin/httpd/src/modules/ssl/ssl_engine_kernel.c')
| -rw-r--r-- | usr.sbin/httpd/src/modules/ssl/ssl_engine_kernel.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/httpd/src/modules/ssl/ssl_engine_kernel.c b/usr.sbin/httpd/src/modules/ssl/ssl_engine_kernel.c index 8e711525a66..ca1b3f0a55c 100644 --- a/usr.sbin/httpd/src/modules/ssl/ssl_engine_kernel.c +++ b/usr.sbin/httpd/src/modules/ssl/ssl_engine_kernel.c @@ -800,7 +800,7 @@ int ssl_hook_Access(request_rec *r) if (dc->nVerifyDepth != UNSET) { apctx = SSL_get_app_data2(ssl); if ((vp = ap_ctx_get(apctx, "ssl::verify::depth")) != NULL) - n = AP_CTX_PTR2NUM(vp); + n = (int)AP_CTX_PTR2NUM(vp); else n = sc->nVerifyDepth; ap_ctx_set(apctx, "ssl::verify::depth", @@ -1071,10 +1071,12 @@ int ssl_hook_Access(request_rec *r) } /* - * Else access is granted... - * (except vendor handlers override) + * Else access is granted from our point of view (except vendor + * handlers override). But we have to return DECLINED here instead + * of OK, because mod_auth and other modules still might want to + * deny access. */ - rc = OK; + rc = DECLINED; #ifdef SSL_VENDOR ap_hook_use("ap::mod_ssl::vendor::access_handler", AP_HOOK_SIG2(int,ptr), AP_HOOK_DECLINE(DECLINED), |
