Commit graph

8547 commits

Author SHA1 Message Date
orignal
cbb5250dd4 don't schedule resend timer while choked 2025-06-03 18:46:22 -04:00
orignal
6ad6a2501e fixed incorrect limit in strsplit 2025-06-03 07:58:31 -04:00
orignal
2631255b46 enable post quantum back 2025-06-03 07:57:08 -04:00
orignal
db67126581
Merge pull request from dbermond/fix-test-base-64
tests: fix test-base-64
2025-06-03 06:11:54 -04:00
Daniel Bermond
37fd4b4422
tests: fix test-base-64
test-base-64 was not updated after the following commits:

93cc810f29
bbf5c1655a

This leads to errors like:

In file included from /usr/include/c++/15.1.1/cassert:46,
                 from /build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:1:
/build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp: In function ‘int main()’:
/build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:14:28: error: too many arguments to function ‘std::string i2p::data::ByteStreamToBase64(const uint8_t*, size_t)’
   14 |   assert(ByteStreamToBase64(NULL, 0, NULL, 0) == 0);
      |          ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~

and:

In file included from /build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:4:
/build/i2pd/src/i2pd-2.57.0/build/../libi2pd/Base.h:21:21: note: declared here
   21 |         std::string ByteStreamToBase64 (const uint8_t * InBuffer, size_t InCount);
      |                     ^~~~~~~~~~~~~~~~~~
/build/i2pd/src/i2pd-2.57.0/tests/test-base-64.cpp:14:47: error: no match for ‘operator==’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
   14 |   assert(ByteStreamToBase64(NULL, 0, NULL, 0) == 0);
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
      |                            |                     |
      |                            |                     int
      |                            std::string {aka std::__cxx11::basic_string<char>}

among others.
2025-06-02 23:28:51 -03:00
orignal
56bd94a1cb 2.57.0 2025-06-01 08:41:20 -04:00
orignal
021431d97a disable post-quantum for release 2025-06-01 08:40:44 -04:00
orignal
e6b742a172
Merge pull request from nobs2p/openssl
Add settunneltype parameter to BOB API to configure proxy tunnel type
2025-05-29 06:23:49 -04:00
nobs2p
1b068618ba
Add settunneltype parameter to BOB API for i2pd to configure proxy tunnel type
This update introduces the settunneltype <socks|httpproxy> command to the BOB API, allowing users to specify the tunnel type as either SOCKS or HTTP proxy. When the tunnel type is set, the corresponding proxy service is automatically started. This enhances flexibility in tunnel configuration through the BOB interface.

Signed-off-by: nobs2p <nobs2p@i2pmail.org>
2025-05-29 12:35:10 +03:00
orignal
7ec0c98036 fixed newkeys crash 2025-05-28 06:39:39 -04:00
orignal
9573b21c08 changed log level frm warning to info for some messages 2025-05-26 17:35:59 -04:00
orignal
35ba14d06a increase message expiration timeout in SSU2 2025-05-25 18:23:22 -04:00
orignal
606881898b fill phony record for inbound tunnel with x25519 public key 2025-05-25 14:49:58 -04:00
orignal
4c6be3b85a disable loss-control 2025-05-23 21:26:44 -04:00
orignal
f93b354c36
Merge pull request from nobs2p/fix_SAM_FORWARD
Fix FORWARD session host handling in SAM and refactor SAMSocket::ProcessStreamForward
2025-05-22 19:54:58 -04:00
nobs2p
d440b5bf09
Fix FORWARD session host handling in SAM; refactor SAMSocket::ProcessStreamForward
- Fixed validation of HOST and PORT parameters for FORWARD sessions:
  - Improved IP address parsing with fallback to 127.0.0.1 if invalid
- Added checks for required parameters (ID, HOST, PORT)
- General cleanup and refactoring for improved readability and stability

Signed-off-by: nobs2p <nobs2p@i2pmail.org>
2025-05-20 00:07:56 +03:00
r4sas
aab8296619
[i18n] add Hebrew and Hindi translations, add rtl support (testing)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2025-05-18 02:20:31 +03:00
orignal
246bc43dea read more data from socket if available and stream buffer is not full 2025-05-07 18:54:55 -04:00
orignal
209eb174c6 fixed choked stream hanging 2025-05-04 18:59:21 -04:00
orignal
0d278d2ae5 probing resistance 2025-05-03 13:09:06 -04:00
orignal
aece5bb16c don't exceed stream max send buffer size 2025-05-03 08:47:49 -04:00
orignal
539cd5a656 max i2p stream buffer size 2025-05-02 13:36:59 -04:00
orignal
0cbada2196 correct receive buffer size 2025-05-02 13:23:53 -04:00
orignal
855e111bd0 fixed private key size and publishing for crypto type 1 2025-05-02 08:32:20 -04:00
orignal
d9f64c6f51 connection max stream buffer size 2025-05-01 18:09:39 -04:00
orignal
b03ec650ef keep receving new data from socket while previous is being sent to stream 2025-04-29 12:56:35 -04:00
orignal
fdbf4366eb remove reseed.memcpy.io 2025-04-28 20:41:36 -04:00
orignal
f164b420b1 cubicchaos.net reseed added 2025-04-26 08:43:32 -04:00
orignal
929ff6e358 encrypted LeaseSet never comes through a session 2025-04-26 08:39:11 -04:00
orignal
9d44a32e4c fixed . Give more time to close streams after session disconnect if needed 2025-04-24 16:37:50 -04:00
orignal
a5fa4ddb4c compare LeaseSet's static keys with ratchets session it was received from 2025-04-22 21:21:51 -04:00
orignal
724d8bde4e handle incoming packets with ML-DSA signature 2025-04-21 21:25:51 -04:00
orignal
9bd2b8df76 create and handle ML-DSA identities and signatures 2025-04-20 18:53:21 -04:00
orignal
2afdd5b723 cleanup NSR keys 2025-04-19 12:33:09 -04:00
R4SAS
9b967059ad
[gha] Update docker containers build 2025-04-18 21:52:44 +03:00
orignal
58818514e7 correct NSR size 2025-04-17 22:34:39 -04:00
orignal
bbfe81cb79 handle any incoming post quantum crypto type 2025-04-17 22:15:17 -04:00
orignal
67fe6faf2d get preferred crypto key type from ratchets session 2025-04-16 22:08:16 -04:00
orignal
1c162f9fd5 get preferred crypto key type from ratchets session 2025-04-16 21:59:10 -04:00
orignal
e69b56c4e3 publish preferred key first 2025-04-16 16:44:01 -04:00
orignal
f6c93f7345 common LocalEncryptionKey to pass to loacl LeaseSet 2025-04-16 15:40:09 -04:00
orignal
9c46ff2449 Initial Noise states and encryptors/decryptors for ML-KEM-768 and ML-KEM-1024 2025-04-15 13:26:19 -04:00
orignal
1a04b59585 common InitNoiseIKState for all ML-KEM crypto 2025-04-14 21:45:53 -04:00
orignal
828cd9d07b common MLKEMKeys for all types 2025-04-14 19:38:43 -04:00
orignal
4c5d0116f8 moved ML-KEM code to PostQuntum.h/.cpp 2025-04-14 18:21:07 -04:00
orignal
459be02d18 correct sequence of MixKey for ML-KEM NSR 2025-04-14 13:31:37 -04:00
orignal
a83cd99f58 all ML-KEM crypto types 2025-04-14 13:29:53 -04:00
orignal
9ab1a67f0b common ML-KEM names and key lengths 2025-04-13 18:18:44 -04:00
orignal
f6abbe5908 Use noise state Encrypt/Decrypt operations 2025-04-08 14:39:46 -04:00
orignal
711f5bcc62 store ML-KEM section for possible next NSR 2025-04-07 20:33:19 -04:00