Commit Graph
338 Commits
Author SHA1 Message Date
Thomas 02db831d01 Fix spelling typos 2026-06-18 09:30:42 +02:00
alhudz 524b0d07f2 fix off-by-one over-read in match_string2 unicode escape parsing 2026-06-01 18:22:34 +05:30
tobtoht 0d631acd51 Merge pull request #10241
108244c Add wire::json_writer, and use in some of ZMQ-PUB functions. (Lee *!* Clagett)
2026-05-25 18:47:39 +00:00
Lee *!* Clagett 108244cdf5 Add wire::json_writer, and use in some of ZMQ-PUB functions. 2026-05-21 17:19:52 -04:00
tobtoht b745be7235 Merge pull request #10587
2c327aa fix spelling in comments and docs (Thomas)
2026-05-19 19:53:51 +00:00
jeffro256 aa3abe2c03 net_ssl: Use EVP API to create EVP_PKEYs when available
The following functions are deprecated in OpenSSL 3.0 and used in net_ssl.cpp: `RSA_free`, `EC_KEY_free`, `RSA_new`, `RSA_generate_key_ex`, `EC_KEY_set_group`, `EC_KEY_generate_key`.

Since EVP_RSA_gen was added in OpenSSL 3.0 and since the aforementioned functions were deprecated in OpenSSL 3.0, I check if the OpenSSL version >= 3.0, and use EVP_RSA_gen instead of everything else up to assigning the private key to the certificate in `create_rsa_ssl_certificate`.

I also deleted `create_ec_ssl_certificate` since it wasn't used.
2026-05-18 23:47:46 -05:00
Thomas 2c327aa325 fix spelling in comments and docs 2026-05-13 21:20:05 +02:00
tobtoht fb5b06bd3b Merge pull request #10520
a5ab8e5 net: replace deprecated boost::asio::strand::wrap with bind_executor (ryurt46)
2026-05-13 11:08:59 +00:00
tobtoht 43cb148952 Merge pull request #10517
a5abe71 epee: fix memory leak with readline (ComputeryPony)
2026-05-10 17:43:09 +00:00
ComputeryPony a5abe71486 epee: fix memory leak with readline 2026-05-09 16:30:13 -05:00
ryurt46 a5ab8e5709 net: replace deprecated boost::asio::strand::wrap with bind_executor 2026-05-04 19:10:06 +02:00
tobtoht 8b79bfc836 Merge pull request #10485
5723d6b epee: remove save_limit_to_file (tobtoht)
2026-05-04 16:39:19 +00:00
tobtoht 0617f433be fix: warning: ignored-attributes 2026-04-29 10:21:40 +02:00
tobtoht 5723d6b6f1 epee: remove save_limit_to_file 2026-04-28 19:21:12 +02:00
Lee *!* Clagett 3d6b9fb568 Harden HTTP client auth 2026-03-13 13:41:15 -04:00
selsta ca484323c3 epee: only parse valid port
Reported by hacksandhops and Ada Logic.
2025-08-29 11:45:02 +02:00
Michael Cho f61294dc6b epee: include math header for upcoming Boost 1.89
When building on Ubuntu 22.04 with GCC 11.4.0 and Boost 1.89.0.beta1,
the build failed with:
```
error: ‘floor’ was not declared in this scope
     41 |       num_char = (int)floor((float)num_char / (float)radix);
        |                       ^~~~~
```

Signed-off-by: Michael Cho <michael@michaelcho.dev>
2025-08-12 20:07:49 -04:00
tobtoht c572e1ad00 Merge pull request #9908
9891fe8 epee: fix string_tools on Windows (0xFFFC0000)
2025-06-14 18:59:52 +00:00
0xFFFC0000 9891fe8238 epee: fix string_tools on Windows 2025-04-22 13:22:02 +00: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
woodser 02e2a4f4cd assign default port for http and https clients 2025-02-17 08:11:44 -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
Lee *!* Clagett 7e766e13c3 Cleanup TCP throttling code (performance) + move connection checks 2024-12-19 20:47:44 -05: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
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
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
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
copyCat 341771ac3e copyright: bump to 2024 2024-05-21 16:29:33 +00: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
Lee Clagett 69a8175edc Change std::result_of to auto 2023-11-20 17:16:42 -05:00
jeffro256 e191083bed epee: remove dead code in math_helper and string_tools 2023-10-25 16:41:21 -05:00
luigi1111 9537329962 Merge pull request #8899
0961c2a Set SSL SNI even when server verification is disabled (Lee *!* Clagett)
2023-07-06 21:33:57 -05:00
luigi1111 3a72c47445 Merge pull request #8344
70bbd25 core_rpc_server: new file: rpc_ssl.fingerprint (Jeffrey Ryan)
2023-07-06 21:27:16 -05:00
Jeffrey Ryanandjeffro256 70bbd2536b core_rpc_server: new file: rpc_ssl.fingerprint 2023-07-02 19:38:51 -05:00
luigi1111 e4e8edd9c9 Merge pull request #8870
eb94356 Add to_hex::buffer (Lee *!* Clagett)
2023-06-27 11:45:48 -05:00
luigi1111 02ebe9090e Merge pull request #8792
04dfdb3 epee: protect base64_chars, removed dead functions, speed up compile (Jeffro256)
2023-06-27 11:32:07 -05:00
Lee *!* Clagett 0961c2abe4 Set SSL SNI even when server verification is disabled 2023-06-09 11:16:03 -04:00
Lee *!* Clagett eb943562cb Add to_hex::buffer 2023-05-22 13:36:05 -04:00
luigi1111 b2d603e61f Merge pull request #8789
df9aa6b epee: remove dead code in net_helper (Jeffro256)
2023-04-25 11:22:50 -04:00
luigi1111 9bf06ea75d Merge pull request #8698
5b4fea7 Copyright: Update to 2023 (mj-xmr)
2023-04-25 11:12:56 -04:00
Jeffro256 04dfdb332e epee: protect base64_chars, removed dead functions, speed up compile 2023-03-20 16:02:48 -05:00
Jeffro256 df9aa6bb04 epee: remove dead code in net_helper 2023-03-19 12:51:27 -05:00