Electroneum
Loading...
Searching...
No Matches
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 }

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 }

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/contrib/epee/include/net/http_auth.h
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/contrib/epee/src/http_auth.cpp