Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changes-entries/ssl-authtype.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*) mod_ssl: Set auth type to "ClientCert" when client certificate authentication
has been performed. [Michael Osipov <michaelo apache.org>]
4 changes: 3 additions & 1 deletion modules/ssl/ssl_engine_kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1130,8 +1130,10 @@ int ssl_hook_Access(request_rec *r)
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);
Expand Down
Loading