aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-04-06net: enable IPv6 by defaultBertrand Jacquin3-45/+47
As of 2024-04-01, IPv6 represents ~43% of traffic entering Google with up to 75% is some country, and in generally more available when IPv6 was introduced in Monero in 2019 as part of 155475d97196 ("Add IPv6 support"). Monero overall has a very low presence over IPv6 which in part can be explained from the fact that IPv6 need to be specifically enabled before it is used and often requires nodes to be manually added in configuration. This commit enabled IPv6 by default for both RPC and P2P as an attempt to improve Monero network mesh diversity. The change has been tested in a lot of different scenario: IPv4 only, IPv6 only, IPv4+IPv6, IPv4+IPv6 with broken/invalid IPv4 system configuration, IPv4+IPv6 with broken/invalid IPv6 system configuration. * --p2p-use-ipv6 is now deprecated and has no effect * --p2p-ignore-ipv6 is introduced to ignore unsuccessful IPv6 P2P binding * --rpc-use-ipv6 is now deprecated and has no effect * --rpc-ignore-ipv6 is introduced to ignore unsuccessful IPv6 RPC binding See: https://github.com/monero-project/monero/issues/8818 See: https://www.google.com/intl/en/ipv6/statistics.html See: https://www.vyncke.org/ipv6status/
2024-04-06net: define IPv4 object explicitlyBertrand Jacquin3-32/+32
Modify all IPv4 variables, function arguments name and daemon arguments to IPv4 specific naming to raise consistency with IPv6. This change is done in order to make source code more legible before addressing #8818. * --p2p-bind-ip is replaced with --p2p-bind-ipv4-address * --p2p-bind-port is replaced with --p2p-bind-port-ipv4 * --rpc-bind-ip is replaced with --rpc-bind-ipv4-address * --rpc-restricted-bind-ip is replaced with --rpc-restricted-bind-ipv4-address Bug: https://github.com/monero-project/monero/issues/8818
2024-03-10Revert "http_client: reduce number of packets sent for small bodies"jeffro2561-26/+16
This reverts commit 0ae5c91e504b8007dedc2b89c9b2b49c404ffec6.
2024-02-24Merge pull request #9132luigi11111-3/+3
9cd4757 Cleanup extra memory allocation, and port boost::shared_ptr to std::shared_ptr. (0xFFFC0000)
2024-02-24Merge pull request #9125luigi11111-193/+0
0c545f6 epee/test: remove levin_protocol_handler and core_proxy tests (jeffro256)
2024-01-23Cleanup extra memory allocation, and port boost::shared_ptr to std::shared_ptr.0xFFFC00001-3/+3
2024-01-18Merge pull request #9103luigi11111-0/+2
562bdb8 storages: add missing return (selsta)
2024-01-18Merge pull request #9090luigi11111-0/+1
430b102 Cleanup scoped_ptr in src/common/dns_utils.cpp and header include: * No need for entire new class (Fix #8732). * Fix stdint.h header include in contrib/epee/include/net/http_base.h. (0xFFFC0000)
2024-01-18Merge pull request #9072luigi11111-4/+2
69a8175 Change std::result_of to auto (Lee Clagett)
2024-01-17epee/test: remove levin_protocol_handler and core_proxy testsjeffro2561-193/+0
2023-12-25storages: add missing returnselsta1-0/+2
2023-12-19Cleanup scoped_ptr in src/common/dns_utils.cpp and header include:0xFFFC00001-0/+1
* No need for entire new class (Fix #8732). * Fix stdint.h header include in contrib/epee/include/net/http_base.h.
2023-11-20Change std::result_of to autoLee Clagett1-4/+2
2023-11-06Add compile-time check for input iterators in ::wire array writingLee *!* Clagett1-1/+8
2023-11-06Merge pull request #9038luigi11113-210/+6
e191083 epee: remove dead code in math_helper and string_tools (jeffro256)
2023-10-25Merge pull request #8969luigi11111-1/+1
8190f25 KV_SERIALIZE: remove extraneous semicolons in DSL (jeffro256)
2023-10-25epee: remove dead code in math_helper and string_toolsjeffro2563-210/+6
2023-09-22storages: change error log category to serializationselsta2-0/+6
2023-08-17Merge pull request #8955luigi11111-11/+10
192d87c remove more 'using namespace' statements from headers (jeffro256)
2023-08-17Merge pull request #8914luigi11111-0/+10
45b52de wallet-rpc: restore from multisig seed (jeffro256)
2023-08-17Merge pull request #8868luigi11119-0/+1093
a6ce2dc Write interface for new serialization system (Lee *!* Clagett)
2023-08-17Merge pull request #8786luigi11111-16/+26
0ae5c91 http_client: reduce number of packets sent for small bodies (jeffro256)
2023-08-11Write interface for new serialization systemLee *!* Clagett9-0/+1093
2023-08-10`KV_SERIALIZE`: remove extraneous semicolons in DSLjeffro2561-1/+1
Prereq of https://github.com/monero-project/monero/pull/8867
2023-07-28wallet-rpc: restore from multisig seedjeffro2561-0/+10
2023-07-18remove more 'using namespace' statements from headersjeffro2561-11/+10
2023-07-06Merge pull request #8899luigi11111-5/+8
0961c2a Set SSL SNI even when server verification is disabled (Lee *!* Clagett)
2023-07-06Merge pull request #8344luigi11112-0/+100
70bbd25 core_rpc_server: new file: rpc_ssl.fingerprint (Jeffrey Ryan)
2023-07-02core_rpc_server: new file: rpc_ssl.fingerprintJeffrey Ryan2-0/+100
2023-06-27Merge pull request #8870luigi11112-0/+11
eb94356 Add to_hex::buffer (Lee *!* Clagett)
2023-06-27Merge pull request #8869luigi11111-0/+2
2c98a82 Add byte_stream alue_type and data() (Lee *!* Clagett)
2023-06-27Merge pull request #8792luigi11114-27/+6
04dfdb3 epee: protect base64_chars, removed dead functions, speed up compile (Jeffro256)
2023-06-27Merge pull request #8731luigi11111-4/+1
6c73dc7 properly terminate interrupted TCP connection. fixes #8685 (j-berman)
2023-06-27Merge pull request #8598luigi11111-86/+2
4f3a54b Remove invoke function in levin handler (Lee Clagett)
2023-06-09Set SSL SNI even when server verification is disabledLee *!* Clagett1-5/+8
2023-05-22Add to_hex::bufferLee *!* Clagett2-0/+11
2023-05-21Add byte_stream `value_type` and `data()`Lee *!* Clagett1-0/+2
2023-05-06fix missing <cstdint> includestobtoht2-0/+2
2023-04-25Merge pull request #8789luigi11112-167/+2
df9aa6b epee: remove dead code in net_helper (Jeffro256)
2023-04-25Merge pull request #8698luigi111133-33/+33
5b4fea7 Copyright: Update to 2023 (mj-xmr)
2023-03-20epee: protect base64_chars, removed dead functions, speed up compileJeffro2564-27/+6
2023-03-19http_client: reduce number of packets sent for small bodiesjeffro2561-16/+26
2023-03-19epee: remove dead code in net_helperJeffro2562-167/+2
2023-02-07Revert "epee: when loading a JSON RPC payload, ensure params is an object"moneromooo-monero1-10/+0
This reverts commit b67e931843cd0c8191ec49f80448c010cba39901. This turns out to be a bad idea, because we do have weird RPC which do actually go counter to this
2023-02-06Merge pull request #8699luigi11111-0/+4
f3420cb readline_buffer: disable bracketed paste escape sequences (Jeffrey Ryan)
2023-02-06Merge pull request #8693luigi11111-0/+13
bfd7c00 heed NO_COLOR environment variable (moneromooo-monero)
2023-02-06Merge pull request #8692luigi11111-0/+10
b67e931 epee: when loading a JSON RPC payload, ensure params is an object (moneromooo-monero)
2023-02-04properly terminate interrupted TCP connection. fixes #8685j-berman1-4/+1
2023-01-16Copyright: Update to 2023mj-xmr33-33/+33
Co-authored-by: plowsof <plowsof@protonmail.com> extra files
2023-01-04readline_buffer: disable bracketed paste escape sequencesJeffrey Ryan1-0/+4
2023-01-01heed NO_COLOR environment variablemoneromooo-monero1-0/+13
2023-01-01epee: when loading a JSON RPC payload, ensure params is an objectmoneromooo-monero1-0/+10
this makes it easier to spot those mistakes by the caller
2022-11-13epee: remove dead HTTP codeJeffrey Ryan5-137/+0
http_client.h
2022-10-28Merge pull request #8569luigi11111-72/+0
b526a4b levin_abstract_invoke: remove dead code (Jeffrey Ryan)
2022-10-28Merge pull request #8543luigi11111-1/+1
d21fd92 rpc: dont shrink slice when loading from binary (Jeffrey Ryan)
2022-09-26Remove invoke function in levin handlerLee Clagett1-86/+2
2022-09-14levin_abstract_invoke: remove dead codeJeffrey Ryan1-72/+0
2022-09-09Merge pull request #8547luigi11111-4/+4
e410ab7 Windows: fix unicode file path support (tobtoht)
2022-09-09Merge pull request #8348luigi11111-4/+4
a4cb77f epee: update 'http_server_handlers_map2.h' macros to use fully qualified names (Jeffrey Ryan)
2022-09-02Windows: fix unicode file path supporttobtoht1-4/+4
2022-08-30rpc: dont shrink slice when loading from binaryJeffrey Ryan1-1/+1
2022-08-22Merge pull request #8352luigi11113-233/+0
552528b Remove async_blocked_mode_client (Jeffrey Ryan) 3ee2174 string_coding: unused functions (Jeffrey Ryan) 285d9f0 http_server_handlers_map2: dead macros (Jeffrey Ryan)
2022-07-15Merge pull request #8435v0.18.0.0luigi11111-0/+10
cf3be99 Template hash func to fix compiler error on < gcc-6 (j-berman)
2022-07-13Template hash func to fix compiler error on < gcc-6j-berman1-0/+10
2022-07-08address PR commentsj-berman3-390/+385
2022-07-05connection: fix implementationanon4-836/+1229
2022-06-17Remove async_blocked_mode_clientJeffrey Ryan1-113/+0
2022-05-26Merge pull request #8337luigi11111-1/+0
1164874 src, epee: fix a couple compiler warnings (selsta)
2022-05-23string_coding: unused functionsJeffrey Ryan1-94/+0
2022-05-23http_server_handlers_map2: dead macrosJeffrey Ryan1-26/+0
2022-05-23epee: update 'http_server_handlers_map2.h' macros to use fully qualified namesJeffrey Ryan1-4/+4
quick patch which fixes the issue where if you use some macros from `http_server_handlers_map2.h` you have to be in the `epee` namespace or it doesn't compile. Now can remove `using namespace epee;` from header file `core_rpc_server.h`, which caused a couple of name qualifying mistakes
2022-05-23Windows build: fix narrowing error for WaitForSingleObjectJeffrey Ryan1-1/+1
`WaitForSingleObject` returns a `DWORD`, not an int, so assign `retval` as such and it should fix the error.
2022-05-17src, epee: fix a couple compiler warningsselsta1-1/+0
2022-05-16Merge pull request #8315luigi11111-1/+24
1ddb1ee Give better error messages when missing SSL files (Jeffrey Ryan)
2022-05-10Merge pull request #8301luigi11111-1/+1
6ef945d Doxygen: Hide anonymous namespaces from documentation by default (Jeffrey)
2022-05-10Merge pull request #8279luigi11112-237/+1
f7d50cb EPEE: Remove gzip_encoding.h (Jeffrey)
2022-05-10Merge pull request #8278luigi11113-302/+0
63c7f8b EPEE: Remove hmac-md5 (Jeffrey)
2022-05-10Merge pull request #8226luigi11113-5/+5
002bf9c Fix typo: SERIALIZE_TYPE_DUOBLE (Jeffrey)
2022-05-05Give better error messages when missing SSL filesJeffrey Ryan1-1/+24
While copying my data dir to another drive, I missed copying the rpc_ssl.key file b/c of the file permissions. This change will give a much more clear, descriptive error in that scenario.
2022-04-28Doxygen: Hide anonymous namespaces from documentation by defaultJeffrey1-1/+1
Bonus: little doc fix for net_ssl.h
2022-04-25Merge pull request #8275luigi11112-0/+12
9209880 add a sanity check to RPC input data size (moneromooo-monero)
2022-04-25Merge pull request #8248luigi11113-72/+0
d1cb9c3 Remove serialization/enableable (Jeffrey)
2022-04-22EPEE: Remove gzip_encoding.hJeffrey2-237/+1
2022-04-22EPEE: Remove hmac-md5Jeffrey3-302/+0
2022-04-21add a sanity check to RPC input data sizemoneromooo-monero2-0/+12
reported by m31007
2022-04-18Change C-style-casts to static_cast in time_helper.hJeffrey1-4/+4
At the request of @mj-xmr: https://github.com/monero-project/monero/pull/8211#discussion_r822868321
2022-04-18Remove the only 4 non-UTF8 characters in codebaseJeffrey1-4/+4
Relevant commit in old PR: 1b798a7042070cc8063bd341ebf7025da554b632
2022-04-18Factor out move_it_backward from misc_language.hJeffrey1-9/+1
Relevant commit from old PR: 330df2952cb2863a591158b984c0fb7f652887ac
2022-04-18Move copyable_atomic into connection_contextJeffrey1-56/+0
Relevant commit from old PR: bd0a5119957d3ef9130a0b82599e1696995ef235
2022-04-18Refactor out to_nonconst_iterator.hJeffrey4-55/+1
Relevant commit on old PR: 2499269696192ce30dd125ddee90a80d4326dff9
2022-04-18Refactor out pragma_comp_defsJeffrey4-35/+4
Relevant commits on the old cleanup PR: 36933c7f5c7778e2d7fbfea5361c11fb41070467 21e43de0f300ee47b7e597098908601bf591950b 3c678bb1cedfd7b865ac2e7aaf014de4bfb3eb3d
2022-04-18Merge functionality of misc_os_dependent into time_helper.hJeffrey8-279/+33
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-04-18Trimming FatJeffrey7-149/+0
Remove unused include statements or unused definitions.
2022-04-18Boring Old DeletesJeffrey67-9622/+0
Here lies dozens of unused files. This commit is ONLY file deletions except for the removing of a couple of #includes and removing filenames from CmakeLists where appropriate.
2022-04-10epee: allow copying a rolling_median_t objectmoneromooo-monero1-1/+14
2022-04-09Remove serialization/enableableJeffrey3-72/+0
Currently working on an EPEE [ser/de]ialization library for Rust and at first glance, EPEE seemed to have support for optional wrappers. However, after looking into it, this feature appears to be half-baked and unused. Furthermore, adding support for optional values would be better suited to implement at the storage level, in my opinion. That would make parsing DOMs easier and less error-prone. If anyone is currently using this code, please comment. Thanks! At the time of writing, this PR has no merge conflicts with #8211
2022-04-06Merge pull request #8228luigi11112-77/+1
1ce9e9c Remove dead code from parserse_base_utils and fix unit tests (Jeffrey)
2022-04-06Merge pull request #8223luigi11117-39/+34
17772ef Eliminate dependence on boost::interprocess #8223 (Jeffrey)
2022-04-06Merge pull request #8197luigi111134-34/+43
da9aa1f Copyright: Update to 2022 (mj-xmr)
2022-03-30Remove dead code from parserse_base_utils and fix unit testsJeffrey2-77/+1
* Remove `match_string()`, `match_number()`, and `match_word()` * Remove `match_word_with_extrasymb()` and `match_word_til_equal_mark()` * Adapt unit test for `match_number()` to `match_number2()` * Adapt unit test for `match_string()` to `match_string2()` Note: the unit tests were testing for the old version of the functions, and the interfaces for these functions changed slightly, so I had to also edit the tests. As of writing, this PR has no merge conflicts with #8211 Additional changes during review: * Explicitly set up is_[float/signed]_val to be changed before each call * Structify the tests and fix uninitialized variables
2022-03-30Eliminate dependence on boost::interprocess #8223Jeffrey7-39/+34
In this repo, `boost::interprocess` was being used soley to make `uint32_t` operations atomic. So I replaced each instance of `boost::interprocess::ipcdetail::atomic(...)32` with `std::atomic` methods. I replaced member declarations as applicable. For example, when I needed to change a `volatile uint32_t` into a `std::atomic<uint32_t>`. Sometimes, a member was being used a boolean flag, so I replaced it with `std::atomic<bool>`. You may notice that I didn't touch `levin_client_async.h`. That is because this file is entirely unused and will be deleted in PR monero-project#8211. Additional changes from review: * Make some local variables const * Change postfix operators to prefix operators where value was not need
2022-03-25Fix typo: SERIALIZE_TYPE_DUOBLEJeffrey3-5/+5
2022-03-04Copyright: Update to 2022mj-xmr34-34/+43
2022-02-19Undefined behaviour fixesSChernykh6-12/+24
Fixes issues reported in #8120
2021-11-01Merge pull request #8016luigi11111-14/+9
b0ec9f8 epee: avoid ADL selecting C++14 std::quoted (selsta)
2021-10-22epee: add missing headerselsta2-0/+2
2021-10-20epee: avoid ADL selecting C++14 std::quotedselsta1-14/+9
2021-09-16cmake: set required C/C++ standard to 11selsta2-5/+10
Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
2021-09-09Merge pull request #7884luigi11111-1/+1
ec6b4cf support cors wildcard (woodser)
2021-09-09Merge pull request #7858luigi11111-1/+2
426dbf4 fix median overflow bug (koe)
2021-08-26Merge pull request #7850luigi11113-7/+7
0ac9a04 epee: tidying post-incrementation -> pre-incrementation (mj-xmr)
2021-08-20support cors wildcardwoodser1-1/+1
2021-08-19epee: link with Boost_SYSTEM_LIBRARYselsta1-0/+2
2021-08-13fix median overflow bugkoe1-1/+2
2021-08-11Merge pull request #7812luigi11111-1/+2
bf96055 Make SSL key/cert storage backward-compatible (Nathan Dorfman)
2021-08-11epee: tidying post-incrementation -> pre-incrementationmj-xmr3-7/+7
2021-08-05p2p: remove blocked addresses/hosts from peerlistmoneromooo-monero1-0/+3
2021-07-27Make SSL key/cert storage backward-compatibleNathan Dorfman1-1/+2
This is required to build on OpenBSD (which uses LibreSSL). It also allows building against versions of OpenSSL before 1.0.2.
2021-06-11Compil time: move epee storages/parserse_base_utils.h to parserse_base_utils.cppmj-xmr3-233/+291
2021-06-10Merge pull request #7661luigi11111-4/+4
08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
2021-06-10Merge pull request #7416luigi11111-3/+4
b4fe7c2 epee linkage dynamic; move monero_add_library to main CMakeLists.txt (mj-xmr)
2021-06-01Merge pull request #7735luigi11111-0/+2
44cc6d6 Fix boost 1.76.0 compatibility (loqs)
2021-06-01Merge pull request #7712luigi11111-1/+4
d772f13 epee: include public openssl header in cmake (selsta)
2021-05-24Fix boost 1.76.0 compatibilityloqs1-0/+2
Add missing header boost/mpl/contains.hpp monero-project/monero/issues/7728
2021-05-12Merge pull request #7691luigi11112-2/+2
cbd54ea cmake: set 3.5 as minimum version (selsta)
2021-05-12Merge pull request #7688luigi11111-2/+2
451b5a5 clang: fix -Wrange-loop-analysis warnings (selsta)
2021-05-12Merge pull request #7665luigi11111-5/+2
15e6275 CMake: new macro - finding all headers (extract from epee) (mj-xmr)
2021-05-09epee: include public openssl header in cmakeselsta1-1/+4
2021-04-27cmake: set 3.5 as minimum versionselsta2-2/+2
2021-04-27clang: fix -Wrange-loop-analysis warningsselsta1-2/+2
2021-04-24epee linkage dynamic; move monero_add_library to main CMakeLists.txtmj-xmr1-3/+4
2021-04-22Merge pull request #7669luigi11117-135/+164
679d055 Remove payload copy in all outgoing p2p messages (Lee Clagett)
2021-04-16Split epee/string_tools.h and encapsulate boost::lexical_castmj-xmr17-492/+718
2021-04-16Revert "Merge pull request #7136"luigi11117-164/+135
This reverts commit 63c7ca07fba2f063c760f786a986fb3e02fb040e, reversing changes made to 2218e23e84a89e9a1e4c0be5d50f891ab836754f.
2021-04-16Merge pull request #7136luigi11117-135/+164
23aae55 Remove payload copy in all outgoing p2p messages (Lee Clagett)
2021-04-16Merge pull request #7002luigi11114-199/+242
673c6d2 Reduce compilation time of epee/portable_storage_template_helper.h (mj-xmr)
2021-04-16CMake: new macro - finding all headers (extract from epee)mj-xmr1-5/+2
2021-03-29Merge pull request #7439luigi11111-2/+2
0f2b5af Reduced executable size; reduced call sequence to 'allowed' log function (Lee Clagett)
2021-03-29Merge pull request #7460luigi11111-28/+24
2935a0c async_protocol_handler_config: fix deadlock (anon) c877705 async_protocol_handler_config: add deadlock demo (anon)
2021-03-28Reduce compilation time of epee/portable_storage_template_helper.hmj-xmr4-199/+242
2021-03-20Merge pull request #7402luigi11111-1/+10
240d382 Epee: add headers to project files (via glob), to be able to search for them easily. (mj-xmr)
2021-03-20Merge pull request #7394luigi11111-1/+2
b900fa0 Fix compiler warning for in keyvalue_serialization.h (mj-xmr)
2021-03-20Merge pull request #7366luigi11113-0/+57
9867a91 Store RPC SSL key/cert for consistent authentication between runs (Lee Clagett)
2021-03-20Merge pull request #7274luigi11111-4/+4
daf023d epee: don't log raw packet data (moneromooo-monero)
2021-03-20Merge pull request #7005luigi11112-5/+21
249eae5 Allow byte_stream->byte_slice conversion to shrink unused buffer space (Lee Clagett)
2021-03-12async_protocol_handler_config: fix deadlockanon1-28/+24
2021-03-05Merge pull request #7399luigi11111-2/+14
556af11 epee: return HTTP error 400 (Bad request) on deserialization error (moneromooo-monero)
2021-02-25Epee: add headers to project files (via glob), to be able to search for them ↵mj-xmr1-1/+10
easily. Use case: IDEs
2021-02-23epee: return HTTP error 400 (Bad request) on deserialization errormoneromooo-monero1-2/+14
It's better than 404 (Not found)
2021-02-21Fix compiler warning for in keyvalue_serialization.hmj-xmr1-1/+2
2021-02-19async_protocol_handler_config: remove connection correctlyanon1-1/+1
2021-02-18Merge pull request #7343luigi11111-32/+2
545b982 Remove unnecessary atomic operations in levin code (Lee Clagett)
2021-02-15Merge pull request #7308luigi11112-7/+19
df2f00f boosted_tcp_server: fix connection lifetime (anon) 3833624 boosted_tcp_server: add segfault demo (anon)
2021-02-13Store RPC SSL key/cert for consistent authentication between runsLee Clagett3-0/+57
2021-02-06Reduce compilation time of epee/portable_storage.hmj-xmr11-216/+286
2021-01-23Improve cryptonote (block and tx) binary read performanceLee Clagett1-4/+4
2021-01-19boosted_tcp_server: fix connection lifetimeanon2-7/+19
2021-01-19Remove unnecessary atomic operations in levin codeLee Clagett1-32/+2
2021-01-19Remove payload copy in all outgoing p2p messagesLee Clagett7-135/+164
2021-01-16Reduced executable size; reduced call sequence to "allowed" log functionLee Clagett1-2/+2
2021-01-16Remove payload copy in all outgoing p2p messagesLee Clagett7-135/+164
2021-01-15Merge pull request #7137luigi11111-2/+16
f2ad539 readline_buffer: Avoid consecutive duplicates in the history (codesoap)
2021-01-07storages: overridable limits for loading portable_storage from binarymoneromooo-monero5-33/+63
2021-01-06Merge pull request #7281luigi11111-1/+11
b9092dd epee: also limit number of strings in portable_storage (moneromooo-monero)
2021-01-05epee: also limit number of strings in portable_storagemoneromooo-monero1-1/+11
They require at least 24 bytes
2021-01-03Merge pull request #7263Alexander Blair1-4/+13
b652d598d add a max levin packet size by command type (moneromooo-monero)
2021-01-03epee: don't log raw packet datamoneromooo-monero1-4/+4
2021-01-03add a max levin packet size by command typemoneromooo-monero1-4/+13
2021-01-02portable_storage: better sanity checkingmoneromooo-monero1-2/+7
2021-01-01Merge pull request #7250Alexander Blair2-10/+25
61b6e4cc6 Add aggressive restrictions to pre-handshake p2p buffer limit (Lee Clagett)
2021-01-01Merge pull request #7243Alexander Blair1-1/+6
8e2caf3fb portable_storage: check object limit where appropriate (moneromooo)
2021-01-01Merge pull request #7220Alexander Blair3-0/+3
20bdbd7aa portable_storage: forbid unnamed sections (xiphon)
2020-12-31portable_storage: check object limit where appropriatemoneromooo1-1/+6
also fix pedantic off by one in check
2020-12-29Merge pull request #7218Alexander Blair1-5/+0
353f93ee1 portable_storage: remove array element limit (moneromooo-monero)
2020-12-29Merge pull request #7207Alexander Blair5-13/+14
f7ab8bc6d ssl: buffered handshake detection (anon)
2020-12-28portable_storage: forbid unnamed sectionsxiphon3-0/+3
2020-12-28portable_storage: remove array element limitmoneromooo-monero1-5/+0
some people don't want it
2020-12-28ssl: buffered handshake detectionanon5-13/+14
2020-12-27portable_storage: remove overly aggressive cutoffmoneromooo-monero1-2/+0
2020-12-26Merge pull request #7192Alexander Blair1-6/+21
95575cda6 epee: fix some issues using connections after shutdown (moneromooo-monero)
2020-12-26Merge pull request #7190Alexander Blair1-1/+35
7f407c027 portable_storage: add some sanity checks on data size (moneromooo-monero)
2020-12-26Merge pull request #7098Alexander Blair1-1/+0
c0c75ac19 Fixed issues found by static analysis (SChernykh)
2020-12-26epee: fix some issues using connections after shutdownmoneromooo-monero1-6/+21
2020-12-26portable_storage: add some sanity checks on data sizemoneromooo-monero1-1/+35
especially when allocated size is >> serialized data size
2020-12-20Restrict duplicate keys in epee binary formatLee Clagett1-1/+4
2020-12-17Add aggressive restrictions to pre-handshake p2p buffer limitLee Clagett2-10/+25
2020-12-14Fix byte_stream::put_nLee Clagett1-1/+1
2020-12-13readline_buffer: Avoid consecutive duplicates in the historycodesoap1-2/+16
2020-12-10Merge pull request #7009Alexander Blair12-51/+71
7414e2bac Change epee binary output from std::stringstream to byte_stream (Lee Clagett)
2020-12-10Merge pull request #7003Alexander Blair2-18/+8
08eb0949f Change to more efficient allocation strategy in byte_stream (Lee Clagett)
2020-12-08Fixed issues found by static analysisSChernykh1-1/+0
- rolling_median: tried to free uninitialized pointer in a constructor - net_node.inl: erase-remove idiom was used incorrectly. remove_if doesn't actually remove elements, see http://cpp.sh/6fcjv - bulletproofs.cc: call to sizeof() instead of vector.size(), luckily it only impacts performance and not code logic there
2020-12-06protocol: drop peers that don't reply to queriesmoneromooo1-8/+6
2020-12-04keep only the last seen node on a given host in the white listmoneromooo1-0/+33
2020-11-29Merge pull request #6999luigi11111-4/+4
c5f6629 epee: tighten the URL parsing regexp a little (moneromooo-monero)
2020-11-09epee: tighten the URL parsing regexp a littlemoneromooo-monero1-4/+4
fixes massive amounts of time spent on pathological inputs Found by OSS-Fuzz
2020-11-07epee: readline_buffer - fix thread safety, fix sync() after stop()xiphon1-1/+9
2020-10-13Change to more efficient allocation strategy in byte_streamLee Clagett2-18/+8
2020-10-13Allow byte_stream->byte_slice conversion to shrink unused buffer spaceLee Clagett2-5/+21
2020-10-10Change epee binary output from std::stringstream to byte_streamLee Clagett12-51/+71
2020-08-17Add clear method to byte_streamLee Clagett1-0/+3