Lines Matching refs:connection
295 * @param connection The MHD connection structure
301 check_nonce_nc (struct MHD_Connection *connection,
309 mod = connection->daemon->nonce_nc_size;
327 (void) MHD_mutex_lock_ (&connection->daemon->nnc_lock);
330 strcpy(connection->daemon->nnc[off].nonce,
332 connection->daemon->nnc[off].nc = 0;
333 (void) MHD_mutex_unlock_ (&connection->daemon->nnc_lock);
336 if ( (nc <= connection->daemon->nnc[off].nc) ||
337 (0 != strcmp(connection->daemon->nnc[off].nonce, nonce)) )
339 (void) MHD_mutex_unlock_ (&connection->daemon->nnc_lock);
341 MHD_DLOG (connection->daemon,
346 connection->daemon->nnc[off].nc = nc;
347 (void) MHD_mutex_unlock_ (&connection->daemon->nnc_lock);
355 * @param connection The MHD connection structure
361 MHD_digest_auth_get_username(struct MHD_Connection *connection)
367 if (NULL == (header = MHD_lookup_connection_value (connection,
434 * given connection.
436 * @param connection the connection
443 test_header (struct MHD_Connection *connection,
449 for (pos = connection->headers_received; NULL != pos; pos = pos->next)
473 * @param connection connections with headers to compare against
479 check_argument_match (struct MHD_Connection *connection,
493 MHD_DLOG(connection->daemon,
507 connection->daemon->unescape_callback (connection->daemon->unescape_callback_cls,
508 connection,
510 if (MHD_YES != test_header (connection, argp, NULL))
523 connection->daemon->unescape_callback (connection->daemon->unescape_callback_cls,
524 connection,
526 connection->daemon->unescape_callback (connection->daemon->unescape_callback_cls,
527 connection,
529 if (! test_header (connection, argp, equals))
536 for (pos = connection->headers_received; NULL != pos; pos = pos->next)
551 * @param connection The MHD connection structure
562 MHD_digest_auth_check (struct MHD_Connection *connection,
585 header = MHD_lookup_connection_value (connection,
627 make sure to not blow our stack (or per-connection
642 MHD_DLOG(connection->daemon,
670 connection->url,
671 strlen (connection->url)))
674 MHD_DLOG (connection->daemon,
688 check_argument_match (connection,
692 MHD_DLOG (connection->daemon,
700 connection->method,
701 connection->daemon->digest_auth_random,
702 connection->daemon->digest_auth_rand_size,
703 connection->url,
731 MHD_DLOG (connection->daemon,
743 MHD_DLOG (connection->daemon,
755 if (MHD_YES != check_nonce_nc (connection, nonce, nci))
773 connection->method,
788 * @param connection The MHD connection structure
800 MHD_queue_auth_fail_response (struct MHD_Connection *connection,
812 connection->method,
813 connection->daemon->digest_auth_random,
814 connection->daemon->digest_auth_rand_size,
815 connection->url,
818 if (MHD_YES != check_nonce_nc (connection, nonce, 0))
821 MHD_DLOG (connection->daemon,
843 MHD_DLOG(connection->daemon,
864 ret = MHD_queue_response(connection,