aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Update 2019 copyrightbinaryFate2019-03-0518-18/+18
| |/
* | epee: certificate generation fix, pkey deletedDusan Klinec2019-03-101-3/+5
| | | | | | | | - pkey gets deleted by the pkey_deleter but the caller tries to serialize it which causes errors as the memory is freed
* | Fix startup errors with SSL cert generationHoward Chu2019-03-082-38/+6
|/ | | | Use SSL API directly, skip boost layer
* epee: add SSL supportMartijn Otto2019-03-059-43/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you.
* default initialize rpc structuresmoneromooo-monero2019-03-044-9/+35
|
* Merge pull request #5162Riccardo Spagni2019-03-042-6/+14
|\ | | | | | | 4d3b61a3 Use io_service::work in epee tcp server (Lee Clagett)
| * Use io_service::work in epee tcp serverLee Clagett2019-02-102-6/+14
| |
* | Merge pull request #5160Riccardo Spagni2019-03-041-1/+1
|\ \ | | | | | | | | | 7af4fbd4 epee: Add space after ':' in additional http response headers (Tom Smeding)
| * | epee: Add space after ':' in additional http response headersTom Smeding2019-02-181-1/+1
| |/
* | Merge pull request #5113Riccardo Spagni2019-03-041-0/+1
|\ \ | | | | | | | | | c0e9e805 Fixed missing return value in once_a_time class on windows (Markus Behm)
| * | Fixed missing return value in once_a_time class on windowsMarkus Behm2019-02-091-0/+1
| |/
* | Merge pull request #5102Riccardo Spagni2019-03-042-0/+417
|\ \ | | | | | | | | | 1eef0565 performance_tests: better stats, and keep track of timing history (moneromooo-monero)
| * | performance_tests: better stats, and keep track of timing historymoneromooo-monero2019-01-282-0/+417
| | |
* | | Merge pull request #5096Riccardo Spagni2019-03-042-4/+5
|\ \ \ | | | | | | | | | | | | 7c3ade44 network_throttle: use circular_buffer where appropriate (moneromooo-monero)
| * | | network_throttle: use circular_buffer where appropriatemoneromooo-monero2019-02-012-4/+5
| | | |
* | | | Merge pull request #5091Riccardo Spagni2019-03-041-1/+4
|\ \ \ \ | | | | | | | | | | | | | | | 123fc2a2 i2p: initial support (Jethro Grassie)
| * | | | i2p: initial supportJethro Grassie2019-01-301-1/+4
| | |_|/ | |/| |
* / | | epee: add SSL supportmoneromooo-monero2019-02-0211-208/+896
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you.
* | | Adding initial support for broadcasting transactions over TorLee Clagett2019-01-287-126/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Support for ".onion" in --add-exclusive-node and --add-peer - Add --anonymizing-proxy for outbound Tor connections - Add --anonymous-inbounds for inbound Tor connections - Support for sharing ".onion" addresses over Tor connections - Support for broadcasting transactions received over RPC exclusively over Tor (else broadcast over public IP when Tor not enabled).
* | | rpc: fix internal daemon calls in restricted rpc getting partial datamoneromooo-monero2019-01-281-6/+6
| | |
* | | Merge pull request #5065Riccardo Spagni2019-01-281-2/+2
|\ \ \ | |_|/ |/| | | | | ca86ef1b readline: don't dereference possible NULL pointer (Jethro Grassie)
| * | readline: don't dereference possible NULL pointerJethro Grassie2019-01-211-2/+2
| |/
* / Pruningmoneromooo-monero2019-01-224-2/+29
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | The blockchain prunes seven eighths of prunable tx data. This saves about two thirds of the blockchain size, while keeping the node useful as a sync source for an eighth of the blockchain. No other data is currently pruned. There are three ways to prune a blockchain: - run monerod with --prune-blockchain - run "prune_blockchain" in the monerod console - run the monero-blockchain-prune utility The first two will prune in place. Due to how LMDB works, this will not reduce the blockchain size on disk. Instead, it will mark parts of the file as free, so that future data will use that free space, causing the file to not grow until free space grows scarce. The third way will create a second database, a pruned copy of the original one. Since this is a new file, this one will be smaller than the original one. Once the database is pruned, it will stay pruned as it syncs. That is, there is no need to use --prune-blockchain again, etc.
* epee: speedup word/number matchingmoneromooo-monero2019-01-162-45/+89
| | | | | | | | | | | | | | | | | Number matching semantics are slightly changed: since this is used as a filter to check whether a number is signed and/or floating point, we can speed this up further. strto* functions are called afterwards and will error out where necessary. We now also accept numbers like .4 which were not accepted before. The strto* calls on a boost::string_ref will not access unallocated memory since the parsers always stop at the first bad character, and the original string is zero terminated. in arbitrary time measurement units for some arbitrary test case: match_number2: 235 -> 70 match_word2: 330 -> 108
* Merge pull request #5021Riccardo Spagni2019-01-162-3/+13
|\ | | | | | | b82efa32 epee: speed up json parsing (moneromooo-monero)
| * epee: speed up json parsingmoneromooo-monero2018-12-272-3/+13
| |
* | Merge pull request #5001Riccardo Spagni2019-01-162-32/+4
|\ \ | | | | | | | | | a5ffc2d5 Remove boost::lexical_cast for uuid and unused uuid function (Lee Clagett)
| * | Remove boost::lexical_cast for uuid and unused uuid functionLee Clagett2018-12-232-32/+4
| |/
* | Merge pull request #4976Riccardo Spagni2019-01-1613-55/+226
|\ \ | | | | | | | | | 85665003 epee: better network buffer data structure (moneromooo-monero)
| * | epee: better network buffer data structuremoneromooo-monero2018-12-2313-55/+226
| |/ | | | | | | avoids pointless allocs and memcpy
* | Merge pull request #4951Riccardo Spagni2019-01-061-0/+3
|\ \ | | | | | | | | | b21a60ef mlocker: set default log category (moneromooo-monero)
| * | mlocker: set default log categorymoneromooo-monero2018-12-071-0/+3
| | |
* | | Merge pull request #4950Riccardo Spagni2019-01-061-8/+15
|\ \ \ | | | | | | | | | | | | 68f045de easylogging++: check allowed categories before logging (moneromooo-monero)
| * | | easylogging++: check allowed categories before loggingmoneromooo-monero2018-12-071-8/+15
| | | |
* | | | Merge pull request #4949Riccardo Spagni2019-01-061-9/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 5464725a protocol: change standby mode to not wait sleeping (moneromooo-monero) 85807dfb add a once_a_time_milliseconds class (moneromooo-monero)
| * | | | add a once_a_time_milliseconds classmoneromooo-monero2018-12-071-9/+30
| | |/ / | |/| |
* | | | Merge pull request #4938Riccardo Spagni2019-01-062-38/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | a13eb0a1 epee: speed up string matching a bit (moneromooo-monero) 3a3858dc epee: avoid string allocation when parsing a pod from string (moneromooo-monero)
| * | | | epee: speed up string matching a bitmoneromooo-monero2018-12-081-2/+6
| | | | |
| * | | | epee: avoid string allocation when parsing a pod from stringmoneromooo-monero2018-12-081-36/+12
| |/ / /
* | | | Merge pull request #4957luigi11112018-12-311-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | 0e2f5cb perf_timer: make all logs Info level (moneromooo-monero)
| * | | | perf_timer: make all logs Info levelmoneromooo-monero2018-12-081-1/+1
| | |/ / | |/| | | | | | | | | | and make them not default at log level 1
* | | | Merge pull request #4933luigi11112018-12-312-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | 3cf85f0 Changed RECIEVED to RECEIVED in log messages. (normoes)
| * | | | Changed RECIEVED to RECEIVED in log messages.Norman Moeschter2018-12-042-2/+2
| | | | |
* | | | | Merge pull request #4864luigi11112018-12-311-2/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | 707c2f8 Remove -Werror (moneromooo-monero)
| * | | | Remove -Werrormoneromooo-monero2018-11-171-2/+2
| | | | | | | | | | | | | | | | | | | | It is an annoying piece of garbage
* | | | | Merge pull request #4925Riccardo Spagni2018-12-121-1/+0
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | ab783b17 easylogging++: ensure logger is initialized before main (moneromooo-monero) 9b69a0ae daemon: print monero version at startup when calling a detached daemon (moneromooo-monero) 4d71d463 mlocker: remove early page size log (moneromooo-monero)
| * | | | mlocker: remove early page size logmoneromooo-monero2018-11-301-1/+0
| | |/ / | |/| | | | | | | | | | | | | | | | | | It comes before the logger is initialized, so gets displayed even though it should not be by default, and apparenly comes too early for (some versions of) Android, where it crashes.
* | | | Merge pull request #4883Riccardo Spagni2018-12-041-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | 40485a73 mlocker: fix access to global lock map after dtor on exit (moneromooo-monero)
| * | | | mlocker: fix access to global lock map after dtor on exitmoneromooo-monero2018-11-221-2/+2
| | |/ / | |/| | | | | | | | | | as the lock, it now leaks
* | | | Merge pull request #4866Riccardo Spagni2018-12-046-57/+371
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 9c923bad epee: fix network packet header field endianness (moneromooo-monero) ec1a62b5 move int-util.h to epee (moneromooo-monero)