mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
epee: remove dependency on common
This commit is contained in:
parent
a529f0a6c9
commit
40ab12a773
11 changed files with 31 additions and 23 deletions
|
@ -49,7 +49,6 @@ endif()
|
|||
|
||||
target_link_libraries(epee
|
||||
PUBLIC
|
||||
cncrypto
|
||||
easylogging
|
||||
${Boost_FILESYSTEM_LIBRARY}
|
||||
PRIVATE
|
||||
|
|
|
@ -78,7 +78,6 @@
|
|||
|
||||
// TODO:
|
||||
#include "net/network_throttle-detail.hpp"
|
||||
#include "cryptonote_core/cryptonote_core.h"
|
||||
|
||||
#undef MONERO_DEFAULT_LOG_CATEGORY
|
||||
#define MONERO_DEFAULT_LOG_CATEGORY "net.p2p"
|
||||
|
|
|
@ -66,7 +66,6 @@
|
|||
#include <tuple>
|
||||
#include <type_traits>
|
||||
|
||||
#include "crypto/crypto.h"
|
||||
#include "hex.h"
|
||||
#include "md5_l.h"
|
||||
#include "string_coding.h"
|
||||
|
@ -711,8 +710,8 @@ namespace epee
|
|||
{
|
||||
namespace http
|
||||
{
|
||||
http_server_auth::http_server_auth(login credentials)
|
||||
: user(session{std::move(credentials)}) {
|
||||
http_server_auth::http_server_auth(login credentials, std::function<void(size_t, uint8_t*)> r)
|
||||
: user(session{std::move(credentials)}), rng(std::move(r)) {
|
||||
}
|
||||
|
||||
boost::optional<http_response_info> http_server_auth::do_get_response(const http_request_info& request)
|
||||
|
@ -746,7 +745,7 @@ namespace epee
|
|||
user->counter = 0;
|
||||
{
|
||||
std::array<std::uint8_t, 16> rand_128bit{{}};
|
||||
crypto::rand(rand_128bit.size(), rand_128bit.data());
|
||||
rng(rand_128bit.size(), rand_128bit.data());
|
||||
user->nonce = string_encoding::base64_encode(rand_128bit.data(), rand_128bit.size());
|
||||
}
|
||||
return create_digest_response(user->nonce, is_stale);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue