Lines Matching refs:headervalue
123 char *headervalue; in ask_for_authentication() local
131 headervalue = malloc (strlen (strbase) + strlen (realm) + 1); in ask_for_authentication()
132 if (!headervalue) in ask_for_authentication()
135 strcpy (headervalue, strbase); in ask_for_authentication()
136 strcat (headervalue, realm); in ask_for_authentication()
138 ret = MHD_add_response_header (response, "WWW-Authenticate", headervalue); in ask_for_authentication()
139 free (headervalue); in ask_for_authentication()
157 const char *headervalue; in is_authenticated() local
162 headervalue = in is_authenticated()
165 if (NULL == headervalue) in is_authenticated()
167 if (0 != strncmp (headervalue, strbase, strlen (strbase))) in is_authenticated()
184 (strcmp (headervalue + strlen (strbase), expected_b64) == 0); in is_authenticated()