aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | 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
| | | |
| * | | mlog: terminate a string at last char, just in casemoneromooo-monero2017-12-181-0/+1
| | | |
* | | | 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
* | | wipeable_string: move a wipe from reserve to growmoneromooo-monero2017-12-191-3/+2
| | | | | | | | | | | | That way, all implicit wipes ends up in grow, which is more robust
* | | wipeable_string: ignore reserve size less than actual sizemoneromooo-monero2017-12-191-2/+1
| | | | | | | | | | | | | | | This was asserting, but stoffu pointed out the std::string standard considers this ok and ignorable
* | | wipeable_string: fix clear and push_backmoneromooo-monero2017-12-191-1/+4
| |/ |/|
* | 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-178-3/+1218
|\ \ \ | | | | | | | | | | | | | | | | | | | | 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-168-3/+1218
| |/ / | | | | | | | | | | | | These even had the epee namespace. This fixes some ugly circular dependencies.
* / / move includes around to lessen overall loadmoneromooo-monero2017-12-1622-75/+87
|/ /
* | 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-165-4/+228
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | 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-275-4/+228
| |/
* | 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 #2736Riccardo Spagni2017-11-141-3/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 0d9c0db9 Do not build against epee_readline if it was not built (Howard Chu) 178014c9 split off readline code into epee_readline (moneromooo-monero) a9e14a19 link against readline only for monerod and wallet-wallet-{rpc,cli} (moneromooo-monero) 437421ce wallet: move some scoped_message_writer calls from the libs (moneromooo-monero) e89994e9 wallet: rejig to avoid prompting in wallet2 (moneromooo-monero) ec5135e5 move input_line from command_line to simplewallet (moneromooo-monero) 082db75f move cryptonote command line options to cryptonote_core (moneromooo-monero)
| * | split off readline code into epee_readlinemoneromooo-monero2017-11-141-3/+14
| |/
* | 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-145-6/+27
|\ \ \ | |_|/ |/| | | | | 7dbf76d0 Fix an object lifetime bug in net load tests (moneromooo-monero)
| * | Fix an object lifetime bug in net load testsmoneromooo-monero2017-10-095-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-012-3/+10
|\ \ \ | | | | | | | | | | | | | | | | 4b228dd3 cmake: epee: use var from FindOpenSSL.cmake (redfish) 29497f79 epee: use boost type for SSL error code (redfish)
| * | | cmake: epee: use var from FindOpenSSL.cmakeredfish2017-10-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes linking when path to openssl is defined manually: cmake -DOPENSSL_ROOT_DIR='/usr/include/openssl-1.0;/usr/lib/openssl-1.0' ... This is useful for building with OpenSSL v1.0 when default system installation is v1.1. The linking error is undefined SSL_load_error_strings symbol. This is due to -L /usr/lib/openssl-1.0 not making it onto the linkline (so -lssl pulls in the default system openssl).
| * | | 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
|/ /