libfilezilla 0.59.0
A cross-platform C++ library for asynchronous and networked applications
Loading...
Searching...
No Matches
digest.hpp
Go to the documentation of this file.
1#ifndef LIBFILEZILLA_HTTP_DIGEST_HEADER
2#define LIBFILEZILLA_HTTP_DIGEST_HEADER
3
7
8#include "headers.hpp"
9
10namespace fz {
11
13class uri;
14
15namespace http {
16
17typedef fz::http::headers auth_params;
18typedef std::map<std::string, auth_params, fz::less_insensitive_ascii> auth_challenges;
19
21auth_challenges FZ_PUBLIC_SYMBOL parse_auth_challenges(std::string const& header);
22
24std::string FZ_PUBLIC_SYMBOL build_digest_authorization(auth_params const& params, unsigned int & nonce_counter, std::string const& verb, uri const& uri, std::string const& user, std::string const& password, fz::logger_interface & logger);
25
26}
27}
28
29#endif
Abstract interface for logging strings.
Definition logger.hpp:51
The uri class is used to decompose URIs into their individual components.
Definition uri.hpp:30
Definition impersonation.hpp:29
std::string build_digest_authorization(auth_params const &params, unsigned int &nonce_counter, std::string const &verb, uri const &uri, std::string const &user, std::string const &password, fz::logger_interface &logger)
Builds the digest going into the Authorization: request header.
auth_challenges parse_auth_challenges(std::string const &header)
Parses challenges from the WWW-Authenticate response header.
Declares fz::with_headers as base for HTTP requests/responses.
The namespace used by libfilezilla.
Definition apply.hpp:17