When client certificate authentication has been performed r->ap_auth_type was
never populated and env AUTH_TYPE was empty.
We now set auth type to \"ClientCert\".
PR: 45058
Submitted by: Michael Osipov <michaelo@apache.org>
Github: closes #645
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1934210 13f79535-47bb-0310-9956-
ffa450edef68
--- /dev/null
+*) mod_ssl: Set auth type to "ClientCert" when client certificate authentication
+ has been performed. [Michael Osipov <michaelo apache.org>]
if ((dc->nOptions & SSL_OPT_FAKEBASICAUTH) == 0 && dc->szUserName) {
const char *val = ssl_var_lookup(r->pool, r->server, r->connection,
r, dc->szUserName);
- if (val && val[0])
+ if (val && val[0]) {
r->user = apr_pstrdup(r->pool, val);
+ r->ap_auth_type = "ClientCert";
+ }
else
ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, APLOGNO(02227)
"Failed to set r->user to '%s'", dc->szUserName);