mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 02:25:53 +00:00
Convert code to use boost::beast
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include <ripple/json/json_reader.h>
|
||||
#include <ripple/protocol/PublicKey.h>
|
||||
#include <ripple/protocol/Sign.h>
|
||||
#include <beast/core/detail/base64.hpp>
|
||||
#include <boost/beast/core/detail/base64.hpp>
|
||||
#include <boost/regex.hpp>
|
||||
#include <numeric>
|
||||
#include <stdexcept>
|
||||
@@ -182,7 +182,7 @@ ValidatorToken::make_ValidatorToken(std::vector<std::string> const& tokenBlob)
|
||||
for (auto const& line : tokenBlob)
|
||||
tokenStr += beast::rfc2616::trim(line);
|
||||
|
||||
tokenStr = beast::detail::base64_decode(tokenStr);
|
||||
tokenStr = boost::beast::detail::base64_decode(tokenStr);
|
||||
|
||||
Json::Reader r;
|
||||
Json::Value token;
|
||||
@@ -384,7 +384,7 @@ ManifestCache::load (
|
||||
if (! configManifest.empty())
|
||||
{
|
||||
auto mo = Manifest::make_Manifest (
|
||||
beast::detail::base64_decode(configManifest));
|
||||
boost::beast::detail::base64_decode(configManifest));
|
||||
if (! mo)
|
||||
{
|
||||
JLOG (j_.error()) << "Malformed validator_token in config";
|
||||
@@ -419,7 +419,7 @@ ManifestCache::load (
|
||||
revocationStr += beast::rfc2616::trim(line);
|
||||
|
||||
auto mo = Manifest::make_Manifest (
|
||||
beast::detail::base64_decode(revocationStr));
|
||||
boost::beast::detail::base64_decode(revocationStr));
|
||||
|
||||
if (! mo || ! mo->revoked() ||
|
||||
applyManifest (std::move(*mo)) == ManifestDisposition::invalid)
|
||||
|
||||
Reference in New Issue
Block a user