936 Commits

Author SHA1 Message Date
Lee *!* Clagett
f567852867 Add check for exception in tcp accept handler 2025-06-12 17:46:42 -04:00
tobtoht
c2e3835223
Merge pull request #9910
d106e21b7 src: fix clangd warnings (0xFFFC0000)
2025-05-07 03:32:02 +00:00
0xFFFC0000
d106e21b74 src: fix clangd warnings 2025-05-01 05:27:35 +00:00
tobtoht
c5cb8e1b78
Merge pull request #9916
98b79485d msys2 build: include int headers (jeffro256)
2025-04-30 05:29:25 +00:00
jeffro256
98b79485df
msys2 build: include int headers 2025-04-29 00:57:37 -05:00
tobtoht
02fba21846
Merge pull request #9881
8af33c71c epee: syncobj: replace shims with Boost classes (jeffro256)
2025-04-23 16:31:56 +00:00
tobtoht
03de3ad5a6
Merge pull request #9879
18376ca57 epee: remove reg_exp_definer.h (jeffro256)
2025-04-23 16:27:03 +00:00
jeffro256
8af33c71cf
epee: syncobj: replace shims with Boost classes
a. `critical_section` is functionally identical to a `boost::recursive_mutex`
b. `critical_region_t` is functionally identical to a `boost::unique_lock`
c. remove some vestigial definitons `g_test_dbg_lock_sleep` as a variable
2025-04-01 11:09:26 -05:00
jeffro256
18376ca57d
epee: remove reg_exp_definer.h
Locking to initialize static block variables isn't necessary since C++11:
https://en.cppreference.com/w/cpp/language/storage_duration#Static_block_variables
2025-03-31 14:02:15 -05:00
jeffro256
332d92ffbe
epee: span::operator[] allow mut ref from const span
Changes the `operator[]` method so we can get mutable
references to elements even if the span is `const`.
The operator is now also `constexpr`.
This behavior matches `std::span`.

C++ standard reference: https://en.cppreference.com/w/cpp/container/span/operator_at
2025-03-22 16:53:17 -05:00
Lee *!* Clagett
50897a6871 Limit scope of TCP checks to incoming only 2025-02-24 21:55:35 -05:00
woodser
02e2a4f4cd assign default port for http and https clients 2025-02-17 08:11:44 -05:00
tobtoht
94188d1a4a
Merge pull request #9428
92b671c56 contrib: smaller and more reasonable log size. (0xFFFC0000)
2025-02-17 10:23:19 +00:00
Lee *!* Clagett
ec74ff4a3d Set response limits on http server connections 2025-02-13 23:55:17 -05:00
tobtoht
0e253622b2
Merge pull request #9459
7e766e13c Cleanup TCP throttling code (performance) + move connection checks (Lee *!* Clagett)
2025-01-22 22:39:57 +00:00
tobtoht
8c08863d60
Merge pull request #9663
978f1d7 Fix get_database_size on Windows (iamamyth)
2025-01-14 14:32:20 +00:00
Lee *!* Clagett
4344f97255 Fix build with boost ASIO 1.87. Support boost 1.66+ 2025-01-06 18:05:25 -05:00
iamamyth
978f1d7d41 Fix get_database_size on Windows
Replace all calls to epee::file_io::get_file_size with
boost::filesystem::file_size in order to avoid lossy conversions from
paths to strings, which tend to break filename resolution. This commit
fixes a bug on Windows where the get_info RPC call reported a zero
database size because BlockchainLMBD::get_database_size returned zero.
2025-01-06 10:38:12 -08:00
luigi1111
b95aae5f2c
Merge pull request #9585
c744496 epee: Drop unused in-tree MD5 (Bastian Germann)
0bc5969 Replace in-tree MD5 with OpenSSL (Bastian Germann)
2024-12-23 11:00:30 -05:00
luigi1111
731854d39b
Merge pull request #9583
92de47f Fix memcpy in byte_slice constructor (Lee *!* Clagett)
2024-12-23 10:58:44 -05:00
Lee *!* Clagett
7e766e13c3 Cleanup TCP throttling code (performance) + move connection checks 2024-12-19 20:47:44 -05:00
Bastian Germann
c744496d45 epee: Drop unused in-tree MD5
The RSA-MD licensed implementation that originated from RFC 1321 and got
into epee via Cyrus SASL and libEtPan! is not a good fit for epee, which
also links to the GPL licensed readline. RSA-MD has an advertisement
clause that is known to be incompatible with GPL.
2024-11-22 12:25:08 +01:00
Bastian Germann
0bc5969755 Replace in-tree MD5 with OpenSSL
This uses OpenSSL's non-deprecated EVP digest facility to calculate MD5
in HTTP digest authentication.
2024-11-22 12:24:22 +01:00
Lee *!* Clagett
92de47fd37 Fix memcpy in byte_slice constructor 2024-11-21 17:22:52 -05:00
0xFFFC0000
e9adafa49e contrib: force (de)serialization to create params section incase there is none.
Co-authored-by: Boog900 <boog900@tutanota.com>
2024-11-16 20:22:14 +00:00
luigi1111
893916ad09
Merge pull request #9435
89ad8ac epee: string_tools: keep full path in cut_off_extension (tobtoht)
c51ca53 epee: string_tools: remove dot from get_extension (tobtoht)
2024-10-14 10:17:10 -04:00
jeffro256
ed955bf751
build: fix build with Boost 1.85 and remove instances of viewkey logging
1. Use `std::is_standard_layout` and `std::is_trivially_copyable` instead of `std::is_pod` for KV byte-wise serialization, which fixes compile issue for Boost UUIDs
2. Use `std::has_unique_object_representations` instead of `alignof(T) == 1` for epee byte spans and epee hex functions
3. Removed reimplementation of `std::hash` for `boost::uuids::uuid
4. Removed `<<` operator overload for `crypto::secret_key`
5. Removed instances in code where private view key was dumped to the log in plaintext
2024-09-06 11:46:22 -05:00
tobtoht
89ad8ac8b1
epee: string_tools: keep full path in cut_off_extension 2024-08-14 19:51:12 +02:00
tobtoht
c51ca53daa
epee: string_tools: remove dot from get_extension
Fixes a regression introduced in #9254. Previously it did not
include the dot.
2024-08-14 16:59:09 +02:00
0xFFFC0000
92b671c564
contrib: smaller and more reasonable log size. 2024-08-08 04:50:29 +00:00
luigi1111
caa62bc9ea
Merge pull request #9392
b894042 epee: fix mlog filename compare bug. (0xFFFC0000)
2024-07-16 19:02:24 -04:00
luigi1111
b02bf31b83
Merge pull request #9342
b07a97c epee: partially revert c56ee140 to fix linking errors (jeffro256)
2024-07-16 18:44:04 -04:00
luigi1111
040bccc22f
Merge pull request #9338
4a376d6 copyright: fix vector.h typo (hinto.janaiyo)
d61e8e9 workflows: delete copyright.yml (plowsof)
341771a copyright: bump to 2024 (copyCat)
2024-07-16 18:42:49 -04:00
luigi1111
1ce9960ec6
Merge pull request #9215
3837bb8 remove repetitive word (cuinix)
2024-07-16 18:31:27 -04:00
0xFFFC0000
b8940420bb
epee: fix mlog filename compare bug.
When using a relative path for the log filename,
since the iteration on files adds "./" to the beginning of the filename
monero-wallet-rpc and monero-wallet-cli	cannot find already written
log files and therefore rotate indefinitely.
2024-07-07 21:13:12 +00:00
jeffro256
b07a97c51f
epee: partially revert c56ee140 to fix linking errors
On Linux Mint 21.3, g++ Ubuntu 11.4.0-1ubuntu1~22.04, I get linking error for an undefined reference to `epee::string_tools::trim_right`. This PR reverts the changes
to epee_readline.cpp in commit c56ee140, which turns a `boost::trim_right` callsite into an `epee::string_tools::trim_right` callsite.
2024-05-28 10:37:48 -05:00
hinto.janaiyo
4a376d6d3f copyright: fix vector.h typo 2024-05-21 20:09:14 +01:00
copyCat
341771ac3e copyright: bump to 2024 2024-05-21 16:29:33 +00:00
luigi1111
ee7c5de112
Merge pull request #9313
304dcf8 contrib: fix compilation error for boost 1.85 (0xFFFC0000)
2024-05-20 23:43:36 -05:00
0xFFFC0000
304dcf8570
contrib: fix compilation error for boost 1.85 2024-05-01 12:29:00 +00:00
cuinix
3837bb853f remove repetitive word
Signed-off-by: cuinix <915115094@qq.com>
2024-04-20 19:17:46 +08:00
0xFFFC0000
c56ee140df
Cleanup string_tools.
1. Use boost::filesystem for already available operations.
2. Use boost::string for already available operations.
2024-03-15 14:54:23 +03:30
jeffro256
bcb15d3b00
Revert "http_client: reduce number of packets sent for small bodies"
This reverts commit 0ae5c91e504b8007dedc2b89c9b2b49c404ffec6.
2024-03-10 23:04:44 -05:00
luigi1111
9132d4eea0
Merge pull request #9132
9cd4757 Cleanup extra memory allocation, and port boost::shared_ptr to std::shared_ptr. (0xFFFC0000)
2024-02-24 10:04:04 -05:00
luigi1111
c12ee59ebd
Merge pull request #9125
0c545f6 epee/test: remove levin_protocol_handler and core_proxy tests (jeffro256)
2024-02-24 09:59:50 -05:00
0xFFFC0000
9cd4757c88
Cleanup extra memory allocation, and port boost::shared_ptr to std::shared_ptr. 2024-01-23 11:18:39 +03:30
luigi1111
663dcf3aa2
Merge pull request #9103
562bdb8 storages: add missing return (selsta)
2024-01-18 18:07:12 -05:00
luigi1111
eb904d709a
Merge pull request #9090
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-18 18:06:23 -05:00
luigi1111
7795895774
Merge pull request #9072
69a8175 Change std::result_of to auto (Lee Clagett)
2024-01-18 18:01:08 -05:00
jeffro256
0c545f614a
epee/test: remove levin_protocol_handler and core_proxy tests 2024-01-17 17:17:16 -06:00