aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge pull request #2930Riccardo Spagni2017-12-251-5/+9
|\ \ \ | | | | | | | | | | | | 7f4bb612 levin_protocol_handler_async: add missing response handler locking (moneromooo-monero)
| * | | levin_protocol_handler_async: add missing response handler lockingmoneromooo-monero2017-12-151-5/+9
| |/ /
* | | Merge pull request #2929Riccardo Spagni2017-12-251-0/+20
|\ \ \ | | | | | | | | | | | | | | | | ae55bacd resumption support for updates using range requests (moneromooo-monero) fe0fae50 epee: add a get_file_size function (moneromooo-monero)
| * | | epee: add a get_file_size functionmoneromooo-monero2017-12-151-0/+20
| |/ /
* | | Merge pull request #2920Riccardo Spagni2017-12-256-8/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd5cce07 network_throttle: fix ineffective locking (moneromooo-monero) e0a61299 network_throttle: remove unused xxx static member (moneromooo-monero) 24f584d9 cryptonote_core: remove unused functions with off by one bugs (moneromooo-monero) b1634aa3 blockchain: don't leave dangling pointers in this (moneromooo-monero) 8e60b81c cryptonote_core: fix db leak on error (moneromooo-monero) 213e326c abstract_tcp_server2: log init_server errors as fatal (moneromooo-monero) b51dc566 use const refs in for loops for non tiny types (moneromooo-monero) f0568ca6 net_parse_helpers: fix regex error checking (moneromooo-monero) b49ddc76 check accessing an element past the end of a container (moneromooo-monero) 2305bf26 check return value for generate_key_derivation and derive_public_key (moneromooo-monero) a4240d9f catch const exceptions (moneromooo-monero) 45a1c4c0 add empty container sanity checks when using front() and back() (moneromooo-monero) 56fa6ce1 tests: fix a buffer overread in a unit test (moneromooo-monero) b4524892 rpc: guard against json parsing a non object (moneromooo-monero) c2ed8618 easylogging++: avoid buffer underflow (moneromooo-monero) 187a6ab2 epee: trap failure to parse URI from request (moneromooo-monero) 061789b5 checkpoints: trap failure to load JSON checkpoints (moneromooo-monero) ba2fefb9 checkpoints: pass std::string by const ref, not const value (moneromooo-monero) 38c8f4e0 mlog: terminate a string at last char, just in case (moneromooo-monero) d753d716 fix a few leaks by throwing objects, not newed pointers to objects (moneromooo-monero) fe568db8 p2p: use size_t for arbitrary counters instead of uint8_t (moneromooo-monero) 46d6fa35 cryptonote_protocol: sanity check chain hashes from peer (moneromooo-monero) 25584f86 cryptonote_protocol: print peer versions when unexpected (moneromooo-monero) 490a5d41 rpc: do not try to use an invalid txid in relay_tx (moneromooo-monero)
| * | | network_throttle: remove unused xxx static membermoneromooo-monero2017-12-181-2/+0
| | | |
| * | | abstract_tcp_server2: log init_server errors as fatalmoneromooo-monero2017-12-181-1/+11
| | | | | | | | | | | | | | | | so they show up by default
| * | | net_parse_helpers: fix regex error checkingmoneromooo-monero2017-12-181-2/+2
| | | |
| * | | catch const exceptionsmoneromooo-monero2017-12-181-1/+1
| | | |
| * | | add empty container sanity checks when using front() and back()moneromooo-monero2017-12-181-1/+1
| | | |
| * | | epee: trap failure to parse URI from requestmoneromooo-monero2017-12-181-1/+6
| | |/ | |/|
* | | Merge pull request #2909Riccardo Spagni2017-12-251-0/+1
|\ \ \ | | | | | | | | | | | | dba2de61 levin_protocol_handler_async: call handler destroy function on dtor (moneromooo-monero)
| * | | levin_protocol_handler_async: call handler destroy function on dtormoneromooo-monero2017-12-111-0/+1
| | |/ | |/|
* | | Merge pull request #2905Riccardo Spagni2017-12-251-75/+107
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd1f6029 http_client: rewrite header parsing manually for speed (moneromooo-monero) ec724eb6 tests: add levin fuzz test (moneromooo-monero) f1bdc9a4 tests: add http client fuzz test (moneromooo-monero) 0272df9e add parse_url fuzz test (moneromooo-monero) 261b0dd0 tests: add base58 fuzz test (moneromooo-monero) fd052087 fuzz_testing: allow automatically resuming an interrupted job (moneromooo-monero) c80bb0eb tests: don't init stuff we don't need in fuzz tests - faster (moneromooo-monero) 53b83a83 tests: better load-from-binary fuzz test data file (moneromooo-monero) 1a379ef6 fuzz_testing: build with ASAN (assumed to be available) (moneromooo-monero) 4cd4a431 fuzz_testing: create out directory if needed, and fix filename passing (moneromooo-monero) c27d9092 Makefile: build fuzz tests statically, starts faster (moneromooo-monero) 95aa0bf7 add load_from_binary/load_from_json fuzzers (moneromooo-monero)
| * | | http_client: rewrite header parsing manually for speedmoneromooo-monero2017-12-231-72/+93
| | | | | | | | | | | | | | | | boost::regex is stupendously atrocious at parsing malformed data
| * | | tests: add http client fuzz testmoneromooo-monero2017-12-231-3/+14
| | |/ | |/|
* / | Fix Windows builddEBRUYNE-12017-12-231-0/+4
|/ / | | | | | | Fix no new line
* | Merge pull request #2857Riccardo Spagni2017-12-171-1/+1
|\ \ | | | | | | | | | 7193b89f Scrub keys from memory just before scope end. (moneromooo-monero)
| * | Scrub keys from memory just before scope end.moneromooo-monero2017-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partially implements #74. Securely erases keys from memory after they are no longer needed. Might have a performance impact, which I haven't measured (perf measurements aren't generally reliable on laptops). Thanks to @stoffu for the suggestion to specialize the pod_to_hex/hex_to_pod functions. Using overloads + SFINAE instead generalizes it so other types can be marked as scrubbed without adding more boilerplate.
* | | Merge pull request #2877Riccardo Spagni2017-12-174-2/+444
|\ \ \ | | | | | | | | | | | | | | | | | | | | 43f5269f Wallets now do not depend on the daemon rpc lib (moneromooo-monero) bb89ae8b move connection_basic and network_throttle from src/p2p to epee (moneromooo-monero) 4abf25f3 cryptonote_core does not depend on p2p anymore (moneromooo-monero)
| * | | move connection_basic and network_throttle from src/p2p to epeemoneromooo-monero2017-12-164-2/+444
| |/ / | | | | | | | | | | | | These even had the epee namespace. This fixes some ugly circular dependencies.
* / / move includes around to lessen overall loadmoneromooo-monero2017-12-1618-75/+40
|/ /
* | Merge pull request #2866Riccardo Spagni2017-12-161-5/+4
|\ \ | | | | | | | | | cf5f6236 Corrections in rate limiting / trottle code, especially in 'out' direction (rbrunner7)
| * | Corrections in rate limiting / trottle code, especially in 'out' directionrbrunner72017-11-281-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Deleted 3 out of 4 calls to method connection_basic::sleep_before_packet that were erroneous / superfluous, which enabled the elimination of a "fudge" factor of 2.1 in connection_basic::set_rate_up_limit; also ended the multiplying of limit values and numbers of bytes transferred by 1024 before handing them over to the global throttle objects
* | | Merge pull request #2860Riccardo Spagni2017-12-162-3/+73
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | 3dffe71b new wipeable_string class to replace std::string passphrases (moneromooo-monero) 7a2a5741 utils: initialize easylogging++ in on_startup (moneromooo-monero) 54950829 use memwipe in a few relevant places (moneromooo-monero) 000666ff add a memwipe function (moneromooo-monero)
| * | new wipeable_string class to replace std::string passphrasesmoneromooo-monero2017-11-272-3/+73
| |/
* | Merge pull request #2906Riccardo Spagni2017-12-102-5/+27
|\ \ | | | | | | | | | | | | 27aa8ce9 net_utils_base: fix peer list parsing (moneromooo-monero) fe5ab2c4 epee: fix kv_unserialize return value when a field is not found (moneromooo-monero)
| * | net_utils_base: fix peer list parsingmoneromooo-monero2017-12-091-3/+25
| | | | | | | | | | | | Fields are written with their "name" as key, and that name changed.
| * | epee: fix kv_unserialize return value when a field is not foundmoneromooo-monero2017-12-011-2/+2
| |/
* | epee: add do while(0) around brace statement in a macromoneromooo-monero2017-12-071-1/+1
| | | | | | | | Allows use in more complex expressions
* | Merge pull request #2832Riccardo Spagni2017-12-021-9/+15
|\ \ | | | | | | | | | 287dde63 Added command descriptions (Cifrado)
| * | Added command descriptionsCifrado2017-11-261-9/+15
| |/
* / RPC: CORS add Access-Control-Allow-Headers to OPTIONS preflightTim L2017-11-161-0/+3
|/
* Merge pull request #2811Riccardo Spagni2017-11-141-0/+2
|\ | | | | | | f80f408b epee: don't disable -Wtautological-constant-out-of-range-compare on GCC (moneromooo-monero)
| * epee: don't disable -Wtautological-constant-out-of-range-compare on GCCmoneromooo-monero2017-11-141-0/+2
| | | | | | | | It's a CLANG only option, and causes GCC to error out
* | Merge pull request #2629Riccardo Spagni2017-11-141-2/+0
|\ \ | |/ |/| | | 383ff4f6 remove "using namespace std" from headers (moneromooo-monero)
| * remove "using namespace std" from headersmoneromooo-monero2017-11-141-2/+0
| | | | | | | | | | | | | | It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
* | Merge pull request #2756Riccardo Spagni2017-11-146-0/+0
|\ \ | | | | | | | | | 0bf09154 Fix file permission issue (Tim L)
| * | Fix file permission issueTim L2017-11-036-0/+0
| | | | | | | | | | | | This branch fixes a file permission issue introduced by https://github.com/monero-project/monero/commit/69c37200aa87f100f731e755bdca7a0dc6ae820a
* | | Merge pull request #2753Riccardo Spagni2017-11-142-0/+11
|\ \ \ | | | | | | | | | | | | fa514082 RPC: get_info add rpc_connections_count (Tim L)
| * | | RPC: get_info add rpc_connections_countTim L2017-11-072-0/+11
| |/ /
* | | Merge pull request #2743Riccardo Spagni2017-11-141-0/+1
|\ \ \ | |_|/ |/| | | | | 9ff8e139 epee: disable a spurious warning for a storage function (moneromooo-monero)
| * | epee: disable a spurious warning for a storage functionmoneromooo-monero2017-10-281-0/+1
| | |
* | | Merge pull request #2617Riccardo Spagni2017-11-144-5/+26
|\ \ \ | |_|/ |/| | | | | 7dbf76d0 Fix an object lifetime bug in net load tests (moneromooo-monero)
| * | Fix an object lifetime bug in net load testsmoneromooo-monero2017-10-094-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | The commands handler must not be destroyed before the config object, or we'll be accessing freed memory. An earlier attempt at using boost::shared_ptr to control object lifetime turned out to be very invasive, though would be a better solution in theory.
* | | Merge pull request #2663Riccardo Spagni2017-11-011-1/+9
|\ \ \ | | | | | | | | | | | | | | | | 4b228dd3 cmake: epee: use var from FindOpenSSL.cmake (redfish) 29497f79 epee: use boost type for SSL error code (redfish)
| * | | epee: use boost type for SSL error coderedfish2017-10-171-1/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes compile error when building with OpenSSL v1.1: contrib/epee/include/net/net_helper.h: In member function ‘void epee::net_utils::blocked_mode_client::shutdown_ssl()’: contrib/epee/include/net/net_helper.h:579:106: error: ‘SSL_R_SHORT_READ’ was not declared in this scope if (ec.category() == boost::asio::error::get_ssl_category() && ec.value() != ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ)) ^ contrib/epee/include/net/net_helper.h:579:106: note: suggested alternative: ‘SSL_F_SSL_READ’ See boost/asio/ssl/error.hpp. Boost handles differences between OpenSSL versions. cmake: fail if Boost is too old for OpenSSL v1.1
* | | Merge pull request #2723Riccardo Spagni2017-10-316-17/+60
|\ \ \ | | | | | | | | | | | | 69c37200 RPC Add cross origin resource sharing support (Tim L)
| * | | RPC Add cross origin resource sharing supportTim L2017-10-306-17/+60
| |/ /
* / / net_helper: fix massive slowdown after SSL supportmoneromooo-monero2017-10-201-5/+5
|/ /