-/* $OpenBSD: httpd.h,v 1.70 2015/01/19 19:37:50 reyk Exp $ */
+/* $OpenBSD: httpd.h,v 1.71 2015/01/19 20:00:07 florian Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
int clt_fcgi_type;
int clt_fcgi_chunked;
int clt_fcgi_end;
- char *clt_fcgi_remote_user;
+ char *clt_remote_user;
struct evbuffer *clt_srvevb;
struct evbuffer *clt_log;
-/* $OpenBSD: server_fcgi.c,v 1.48 2015/01/19 19:37:50 reyk Exp $ */
+/* $OpenBSD: server_fcgi.c,v 1.49 2015/01/19 20:00:07 florian Exp $ */
/*
* Copyright (c) 2014 Florian Obser <florian@openbsd.org>
if (srv_conf->flags & SRVFLAG_AUTH) {
if (fcgi_add_param(¶m, "REMOTE_USER",
- clt->clt_fcgi_remote_user, clt) == -1) {
+ clt->clt_remote_user, clt) == -1) {
errstr = "failed to encode param";
goto fail;
}
-/* $OpenBSD: server_http.c,v 1.66 2015/01/19 19:37:50 reyk Exp $ */
+/* $OpenBSD: server_http.c,v 1.67 2015/01/19 20:00:07 florian Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
if (crypt_checkpass(clt_pass, pass) == 0) {
explicit_bzero(line, linelen);
- clt->clt_fcgi_remote_user = strdup(clt_user);
- if (clt->clt_fcgi_remote_user != NULL)
+ clt->clt_remote_user = strdup(clt_user);
+ if (clt->clt_remote_user != NULL)
ret = 0;
break;
}
clt->clt_line = 0;
clt->clt_done = 0;
clt->clt_chunk = 0;
- free(clt->clt_fcgi_remote_user);
- clt->clt_fcgi_remote_user = NULL;
+ free(clt->clt_remote_user);
+ clt->clt_remote_user = NULL;
clt->clt_bev->readcb = server_read_http;
clt->clt_srv_conf = &srv->srv_conf;
server_httpdesc_free(desc);
free(desc);
clt->clt_descresp = NULL;
- free(clt->clt_fcgi_remote_user);
- clt->clt_fcgi_remote_user = NULL;
+ free(clt->clt_remote_user);
+ clt->clt_remote_user = NULL;
}
int