X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fbitcoinrpc.cpp;h=b555f0ba953951dcd4f4900a2b807cec97870f88;hb=c24281833da3e5ba96832c636659a53246cc7249;hp=5535b9bbea2aedfcef7254b9dd5462ad2c44b4e1;hpb=0d30c6a53e6aa6df9a3f61ea8d2719f165497efd;p=novacoin.git diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 5535b9b..b555f0b 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -321,8 +321,11 @@ static const CRPCCommand vRPCCommands[] = { "adjustmalleablepubkey", &adjustmalleablepubkey, false, false}, { "listmalleableviews", &listmalleableviews, false, false}, { "dumpmalleablekey", &dumpmalleablekey, false, false}, + { "importmalleablekey", &importmalleablekey, true, false }, { "encryptdata", &encryptdata, false, false }, { "decryptdata", &decryptdata, false, false }, + { "encryptmessage", &encryptmessage, false, false }, + { "decryptmessage", &decryptmessage, false, false }, { "sendalert", &sendalert, false, false}, }; @@ -424,7 +427,8 @@ int ReadHTTPStatus(std::basic_istream& stream, int &proto) string str; getline(stream, str); vector vWords; - boost::split(vWords, str, boost::is_any_of(" ")); + istringstream iss(str); + copy(istream_iterator(iss), istream_iterator(), back_inserter(vWords)); if (vWords.size() < 2) return HTTP_INTERNAL_SERVER_ERROR; proto = 0; @@ -437,7 +441,7 @@ int ReadHTTPStatus(std::basic_istream& stream, int &proto) int ReadHTTPHeader(std::basic_istream& stream, map& mapHeadersRet) { int nLen = 0; - while (true) + for ( ; ; ) { string str; std::getline(stream, str); @@ -988,7 +992,7 @@ void ThreadRPCServer3(void* parg) AcceptedConnection *conn = (AcceptedConnection *) parg; bool fRun = true; - while (true) + for ( ; ; ) { if (fShutdown || !fRun) {