aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * mlog: handle filenames without parent directoriesmoneromooo-monero2018-07-261-1/+3
| | | | | | | | | | | | eg, --log-file=foo.log This would otherwise throw and crash with a stack overflow
* | common: add a class to safely wrap mlock/munlockmoneromooo-monero2018-08-162-1/+183
| | | | | | | | | | | | This class will allow mlocking small objects, of which there may be several per page. It adds refcounting so pages are only munlocked when the last object on that page munlocks.
* | wallet: wipe seed from memory where appropriatemoneromooo-monero2018-08-162-5/+117
| |
* | memwipe: don't call the workhorse for 0 bytesmoneromooo-monero2018-07-101-3/+5
|/ | | | Some of them don't like it
* Merge pull request #3972luigi11112018-06-251-1/+2
|\ | | | | | | 8766528 epee: fallback to a counter if gmtime fails when rotating logs (moneromooo-monero)
| * epee: fallback to a counter if gmtime fails when rotating logsmoneromooo-monero2018-06-091-1/+2
| |
* | mlog: --max-log-files to set the max number of rotated log filesstoffu2018-06-131-2/+51
|/
* mlog: fix setting no logsmoneromooo-monero2018-04-251-1/+6
|
* wipeable_string: don't try to wipe an empty buffermoneromooo-monero2018-02-181-3/+6
| | | | memset_s doesn't like it
* memwipe: add missing #include <stdio.h>stoffu2018-02-171-0/+1
|
* Merge pull request #3217Riccardo Spagni2018-02-161-10/+6
|\ | | | | | | fde4489e wipeable_string: call memwipe directly (moneromooo-monero)
| * wipeable_string: call memwipe directlymoneromooo-monero2018-01-311-10/+6
| | | | | | | | | | since the original reason for the indirect call (that memwipe was not in contrib) is now gone
* | Merge pull request #3187Riccardo Spagni2018-02-161-0/+6
|\ \ | |/ |/| | | 851bd057 call _exit instead of abort in release mode (moneromooo-monero)
| * call _exit instead of abort in release modemoneromooo-monero2018-02-011-0/+6
| | | | | | | | | | Avoids cores being created, as they're nowadays often piped to some call home system
* | Readd copyright starting datexmr-eric2018-01-263-3/+3
| |
* | Update 2018 copyrightxmr-eric2018-01-268-8/+8
|/
* remove unnecessary includeJethro Grassie2018-01-181-1/+0
|
* Keep readline optionalJethro Grassie2018-01-111-1/+1
|
* Merge pull request #2995Riccardo Spagni2018-01-101-1/+1
|\ | | | | | | 6ccc51f6 wipeable_string: fix buffer overread (moneromooo-monero)
| * wipeable_string: fix buffer overreadmoneromooo-monero2017-12-231-1/+1
| |
* | move memwipe to epee to avoid common<->crypto circular dependenciesmoneromooo-monero2018-01-102-1/+111
| |
* | epee: remove dependency on commonmoneromooo-monero2018-01-103-6/+3
| |
* | Merge pull request #2920Riccardo Spagni2017-12-253-6/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: fix ineffective lockingmoneromooo-monero2017-12-181-3/+5
| |
| * network_throttle: remove unused xxx static membermoneromooo-monero2017-12-181-3/+0
| |
| * mlog: terminate a string at last char, just in casemoneromooo-monero2017-12-181-0/+1
| |
* | 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 #2877Riccardo Spagni2017-12-174-1/+774
|\ | | | | | | | | | | 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-1/+774
| | | | | | | | | | These even had the epee namespace. This fixes some ugly circular dependencies.
* | move includes around to lessen overall loadmoneromooo-monero2017-12-164-0/+47
|/
* new wipeable_string class to replace std::string passphrasesmoneromooo-monero2017-11-273-1/+155
|
* split off readline code into epee_readlinemoneromooo-monero2017-11-141-3/+14
|
* 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: link against ssl/crypto for the new SSL codemoneromooo-monero2017-10-151-0/+2
|
* frob level 1 logs a bit for consistencymoneromooo-monero2017-10-071-1/+1
| | | | | Level 1 logs map to INFO, so setting log level to 1 should show these. Demote some stuff to DEBUG to avoid spam, though.
* Upgrades to epee::net_utils::network_addressLee Clagett2017-10-052-2/+62
| | | | | | | | - internal nullptr checks - prevent modifications to network_address (shallow copy issues) - automagically works with any type containing interface functions - removed fnv1a hashing - ipv4_network_address now flattened with no base class
* Merge pull request #2512Riccardo Spagni2017-10-021-4/+40
|\ | | | | | | | | | | 792ba4f0 Log categories can now be added to and removed from (moneromooo-monero) 48f92eb6 easylogging++: add categories getter (moneromooo-monero) f35afe62 epee: factor log level/categories setting (moneromooo-monero)
| * Log categories can now be added to and removed frommoneromooo-monero2017-09-221-2/+39
| | | | | | | | Also, set_log without parameters now prints the log categories
| * epee: factor log level/categories settingmoneromooo-monero2017-09-221-2/+1
| |
* | daemon, wallet: add --max-log-file-size optionselsta2017-09-171-2/+2
|/
* Simplify readline supportHoward Chu2017-08-221-122/+69
| | | | And don't use std::mutex
* Construct on first use for completion_commandsJethro Grassie2017-08-161-4/+20
|
* Add sync lock on stopJethro Grassie2017-08-161-5/+4
| | | | Also added and moved two free's hoping to fix leaks.
* Tweak net logs so we get more info on why networking can't startmoneromooo-monero2017-08-151-1/+1
| | | | This should prevent "silent" failures to start
* Merge pull request #2189Riccardo Spagni2017-08-071-1/+1
|\ | | | | | | 335fc8ab mlog: fix crash accessing stale data when rotating logs (moneromooo-monero)
| * mlog: fix crash accessing stale data when rotating logsmoneromooo-monero2017-07-221-1/+1
| |
* | Merge pull request #2197Riccardo Spagni2017-08-071-13/+24
|\ \ | | | | | | | | | d75cff1a Fix readline prompt when command does not output (Jethro Grassie)
| * | Fix readline prompt when command does not outputJethro Grassie2017-07-241-13/+24
| |/