diff options
author | Lee Clagett <code@leeclagett.com> | 2016-12-30 01:47:57 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2017-01-11 03:21:17 -0500 |
commit | d81cb0870442a919388df181d2134535bc6d1425 (patch) | |
tree | 8f6560acdf3d463fa087f0c55fc057b35ae9126e /contrib/epee/include/net/http_protocol_handler.h | |
parent | Merge pull request #1542 (diff) | |
download | monero-d81cb0870442a919388df181d2134535bc6d1425.tar.xz |
Added (not yet enabled) HTTP client authentication
Diffstat (limited to 'contrib/epee/include/net/http_protocol_handler.h')
-rw-r--r-- | contrib/epee/include/net/http_protocol_handler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/epee/include/net/http_protocol_handler.h b/contrib/epee/include/net/http_protocol_handler.h index 3813f9d7c..69ea04fbe 100644 --- a/contrib/epee/include/net/http_protocol_handler.h +++ b/contrib/epee/include/net/http_protocol_handler.h @@ -52,7 +52,7 @@ namespace net_utils { std::string m_folder; std::string m_required_user_agent; - boost::optional<http_auth::login> m_user; + boost::optional<login> m_user; critical_section m_lock; }; @@ -173,7 +173,7 @@ namespace net_utils : simple_http_connection_handler<t_connection_context>(psnd_hndlr, config), m_config(config), m_conn_context(conn_context), - m_auth(m_config.m_user ? http_auth{*m_config.m_user} : http_auth{}) + m_auth(m_config.m_user ? http_server_auth{*m_config.m_user} : http_server_auth{}) {} inline bool handle_request(const http_request_info& query_info, http_response_info& response) { @@ -214,7 +214,7 @@ namespace net_utils //simple_http_connection_handler::config_type m_stub_config; config_type& m_config; t_connection_context& m_conn_context; - http_auth m_auth; + http_server_auth m_auth; }; } } |