Electroneum
epee::net_utils::http::http_server_auth Class Reference

Implements RFC 2617 digest auth. Digests from RFC 7616 can be added. More...

#include <http_auth.h>

Classes

struct  session
 

Public Member Functions

 http_server_auth ()
 
 http_server_auth (login credentials, std::function< void(size_t, uint8_t *)> r)
 
boost::optional< http_response_infoget_response (const http_request_info &request)
 

Detailed Description

Implements RFC 2617 digest auth. Digests from RFC 7616 can be added.

Definition at line 61 of file http_auth.h.

Constructor & Destructor Documentation

◆ http_server_auth() [1/2]

epee::net_utils::http::http_server_auth::http_server_auth ( )
inline

Definition at line 75 of file http_auth.h.

75 : user(), rng() {}

◆ http_server_auth() [2/2]

epee::net_utils::http::http_server_auth::http_server_auth ( login  credentials,
std::function< void(size_t, uint8_t *)>  r 
)

Definition at line 714 of file http_auth.cpp.

715  : user(session{std::move(credentials)}), rng(std::move(r)) {
716  }
const T & move(const T &t)
Definition: gtest-port.h:1317
Here is the call graph for this function:

Member Function Documentation

◆ get_response()

boost::optional<http_response_info> epee::net_utils::http::http_server_auth::get_response ( const http_request_info request)
inline
Returns
Auth response, or boost::none iff request had valid auth.

Definition at line 79 of file http_auth.h.

80  {
81  if (user)
82  return do_get_response(request);
83  return boost::none;
84  }
Here is the caller graph for this function:

The documentation for this class was generated from the following files: