aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.cpp (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-05-18common: update sha256sum to use OpenSSL 3.0 APIJeffrey Ryan1-13/+6
As of OpenSSL 3.0, `SHA256_Init`, `SHA256_Update`, and `SHA256_Final` are deprectaed in favor of the higher-level `EVP_*` class of functions. This causes compiler warnings, and sooner or later, will cause build errors as these functions are excluded from distro headers. Also add some documentation.
2022-04-18Merge functionality of misc_os_dependent into time_helper.hJeffrey1-1/+1
Actions: 1. Remove unused functions from misc_os_dependent.h 2. Move three remaining functions, get_gmt_time, get_ns_count, and get_tick_count into time_helper.h 3. Remove unused functions from time_helper.h 4. Refactor get_ns_count and get_internet_time_str and get_time_interval_string 5. Remove/add includes as needed Relevant commits on the old PR: a9fbe52b02ffab451e90c977459fea4642731cd1 9a59b131c4ed1be8afe238fff3780fe203c65a46 7fa9e2817df9b9ef3f0290f7f86357939829e588
2022-03-04Copyright: Update to 2022mj-xmr1-1/+1
2021-07-27Daemon: Update average block size tablerbrunner71-2/+6
2020-12-22restrict public node checks a littlemoneromooo-monero1-1/+10
do not include blocked hosts in peer lists or public node lists by default, warn about no https on clearnet and about untrusted peers likely being spies
2020-10-20util: fix escaping more than one ?* in glob_to_regexmoneromooo-monero1-3/+3
2020-06-25util: fix kilo prefix typo (K instead of k)moneromooo-monero1-1/+1
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2020-03-21Daemon: Print estimates for time until fully syncedrbrunner71-9/+105
2019-11-25util: allow newlines in string to be splitmoneromooo-monero1-1/+14
2019-08-28simplewallet: lock console on inactivitymoneromooo-monero1-0/+160
2019-06-01daemon: add more chain specific info in alt_chain_infomoneromooo-monero1-0/+17
2019-04-18Windows: fix a build error in MSYS2 with boost 1.70.0iDunk54001-0/+3
2019-03-29util: name replace_file arguments bettermoneromooo-monero1-4/+4
It was confusing unless you read code and the rename(2) man page.
2019-03-24New interactive daemon command 'print_net_stats': Global traffic statsrbrunner71-0/+36
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2018-12-12MMS (Multisig Messaging System): Initial versionrbrunner71-0/+12
2018-12-06util: use fcntl instead of flock, for compatibilitymoneromooo-monero1-3/+26
in particular with NFS
2018-12-05util: set MONERO_DEFAULT_LOG_CATEGORYmoneromooo-monero1-0/+3
Otherwise it'd end up with whatever was included last
2018-11-03wallet: warn if lockable memory limit is too lowmoneromooo-monero1-0/+15
2018-10-17spawn: close all file descriptors before execvemoneromooo-monero1-0/+20
No need to give whatever we're calling access to what we use
2018-10-16util: close keys file lock on execmoneromooo-monero1-1/+1
2018-10-09Utils: add support for newer Windows versions detectionGregory Lemercier1-1/+24
2018-09-19simplewallet: Add Unicode input_line [Ryo backport]fireice-uk1-0/+28
2018-08-25is_hdd updatep8p1-50/+36
2018-08-17util: remove unused <ustat.h>moneromooo-monero1-1/+0
It's obsolete and removed from at least Arch Linux 8.2 Reported by moneroexamples
2018-08-12wallet: disable core dumps on startup in release modemoneromooo-monero1-0/+16
2018-07-07core_tests: add --filter to select which tests to runmoneromooo-monero1-0/+19
2018-06-28util: fix mistakes made in #3994stoffu1-3/+3
2018-06-28util: add file_locker classstoffu1-0/+67
2018-06-28epee.string_tools: add conversion between UTF-8 and UTF-16stoffu1-12/+19
2018-06-21Move parse_subaddress_lookahead() from simplewallet.cpp to util.cppstoffu1-0/+18
2018-06-08db_lmdb: warn about slowness when running off a spinning diskmoneromooo-monero1-0/+70
2018-06-05util: consider Tor/I2P addresses to be non localmoneromooo-monero1-0/+7
2018-04-12util: log stack trace on crashmoneromooo-monero1-0/+39
2018-04-10common: make this build with unbound 1.4.20moneromooo-monero1-1/+4
Common on currently used distros
2018-02-25Wallet2 + CLI wallet: UTF-8 support for filenames and paths under Windowsrbrunner71-8/+15
2018-01-31wipeable_string: call memwipe directlymoneromooo-monero1-2/+0
since the original reason for the indirect call (that memwipe was not in contrib) is now gone
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2018-01-10epee: remove dependency on commonmoneromooo-monero1-0/+1
2018-01-08util: warn if unbound was not built with threadsmoneromooo-monero1-0/+17
This can causes crashes in libunbound
2018-01-04Removed unused mac-specific output folder pathMaxithi1-9/+1
2017-12-16move includes around to lessen overall loadmoneromooo-monero1-0/+1
2017-12-07util: allow non numeric version partsmoneromooo-monero1-7/+7
2017-11-27new wipeable_string class to replace std::string passphrasesmoneromooo-monero1-0/+4
2017-11-27utils: initialize easylogging++ in on_startupmoneromooo-monero1-0/+2
It will be reinitialized later once we know about log file and other command line configuration
2017-11-18fixed common/util.cpp to link against libresslston1th1-1/+1
2017-11-14make this build on SunOS/SolarisPavel Maryanov1-1/+1
2017-10-21Initialize openssl on startupmoneromooo-monero1-0/+7
2017-10-14Add tools::on_startup, and warn about glibc 2.25 bug if foundmoneromooo-monero1-0/+15
https://sourceware.org/bugzilla/show_bug.cgi?id=21778
2017-08-30Do not create file when RPC user/pass is given and use file lockingLee Clagett1-21/+55
2017-02-23core: protect precomputed block hashes with SHA256moneromooo-monero1-0/+12
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-20util: add a SHA256 functionmoneromooo-monero1-1/+34
2017-02-20util: add a vercmp function to compare version numbersmoneromooo-monero1-0/+17
It is simple, supports simple x.y.z type numeric versions, and does not attempt any kind of validation
2017-01-28Factor is_address_local code into a tools functionmoneromooo-monero1-0/+37
2016-12-16Enabled HTTP auth support for monero-wallet-rpcLee Clagett1-0/+86
2016-04-28add a --max-concurrency flagmoneromooo-monero1-0/+23
It sets the max number of threads to use for a parallel job. This is different that the number of total threads, since monero binaries typically start a lot of them.
2016-04-06util: add a function to set umask to 077moneromooo-monero1-0/+9
Useful to ensure files are written without group/other read rights.
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-11-29wallet: cancellable refreshmoneromooo-monero1-1/+1
^C while in manual refresh will cancel the refresh, since that's often an annoying thing to have to wait for. Also, a manual refresh command will interrupt any running background refresh and take over, rather than wait for the background refresh to be done, and look to be hanging.
2015-11-25util: use putenv instead of setenv for mingwmoneromooo-monero1-0/+5
2015-11-21Fix startup crash when using a locale boost does not likemoneromooo-monero1-0/+19
There are various locale related bugs in various versions of boost, where exceptions are thrown in boost::filesystem APIs when the current locale is not to boost's liking. It's not clear what "not to boost's liking" means in detail, though "en" and "en_US.UTF-8" are not to its liking. Fix it by running a test function that's known to throw in such a case, and resetting LANG and LC_ALL to C if an exception is thrown. In simplewallet, the locale is queried before that so the correct translations will still be used.
2015-03-20Hopefully fixes build on WindowsThomas Winget1-1/+1
2015-02-242014 network limit 1.3 fix log/path/data +utilsrfree2monero1-1/+1
+toc -doc -drmonero Fixed the windows path, and improved logging and data (for graph) logging, fixed some locks and added more checks. Still there is a locking error, not added by my patches, but present in master version (locking of map/list of peers).
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-09-11Documented varintjebes1-1/+1
2014-09-09commented util.hjebes1-3/+5
2014-07-23License updated to BSD 3-clausefluffypony1-3/+29
2014-03-20some fixesAntonio Juarez1-0/+1
2014-03-03moved all stuff to githubAntonio Juarez1-0/+363