Changeset View
Changeset View
Standalone View
Standalone View
src/httprpc.cpp
// Copyright (c) 2015-2016 The Bitcoin Core developers | // Copyright (c) 2015-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "httprpc.h" | #include <httprpc.h> | ||||
#include "base58.h" | #include <base58.h> | ||||
#include "chainparams.h" | #include <chainparams.h> | ||||
#include "config.h" | #include <config.h> | ||||
#include "crypto/hmac_sha256.h" | #include <crypto/hmac_sha256.h> | ||||
#include "httpserver.h" | #include <httpserver.h> | ||||
#include "random.h" | #include <random.h> | ||||
#include "rpc/protocol.h" | #include <rpc/protocol.h> | ||||
#include "rpc/server.h" | #include <rpc/server.h> | ||||
#include "sync.h" | #include <sync.h> | ||||
#include "ui_interface.h" | #include <ui_interface.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include <boost/algorithm/string.hpp> // boost::trim | #include <boost/algorithm/string.hpp> // boost::trim | ||||
#include <cstdio> | #include <cstdio> | ||||
/** WWW-Authenticate to present with 401 Unauthorized response */ | /** WWW-Authenticate to present with 401 Unauthorized response */ | ||||
static const char *WWW_AUTH_HEADER_DATA = "Basic realm=\"jsonrpc\""; | static const char *WWW_AUTH_HEADER_DATA = "Basic realm=\"jsonrpc\""; | ||||
▲ Show 20 Lines • Show All 390 Lines • Show Last 20 Lines |