Lines Matching refs:f
154 stream f; in http_auth_get_password() local
159 if (0 != stream_open(&f, p->conf.auth_htdigest_userfile)) { in http_auth_get_password()
165 f_line = f.start; in http_auth_get_password()
167 while (f_line - f.start != f.size) { in http_auth_get_password()
179 if (NULL == (f_realm = memchr(f_user, ':', f.size - (f_user - f.start) ))) { in http_auth_get_password()
184 stream_close(&f); in http_auth_get_password()
189 if (NULL == (f_pwd = memchr(f_realm + 1, ':', f.size - (f_realm + 1 - f.start)))) { in http_auth_get_password()
194 stream_close(&f); in http_auth_get_password()
205 if (NULL != (e = memchr(f_pwd, '\n', f.size - (f_pwd - f.start)))) { in http_auth_get_password()
208 pwd_len = f.size - (f_pwd - f.start); in http_auth_get_password()
229 stream_close(&f); in http_auth_get_password()
232 stream f; in http_auth_get_password() local
240 if (0 != stream_open(&f, auth_fn)) { in http_auth_get_password()
247 f_line = f.start; in http_auth_get_password()
249 while (f_line - f.start != f.size) { in http_auth_get_password()
261 if (NULL == (f_pwd = memchr(f_user, ':', f.size - (f_user - f.start) ))) { in http_auth_get_password()
266 stream_close(&f); in http_auth_get_password()
275 if (NULL != (e = memchr(f_pwd, '\n', f.size - (f_pwd - f.start)))) { in http_auth_get_password()
278 pwd_len = f.size - (f_pwd - f.start); in http_auth_get_password()
297 stream_close(&f); in http_auth_get_password()