From ea423cbe6fc5d53c092c8618cca1462c94990515 Mon Sep 17 00:00:00 2001 From: Dimitris Apostolou Date: Wed, 12 Aug 2026 19:27:06 +0300 Subject: [PATCH] fix typos --- libi2pd/ECIESX25519AEADRatchetSession.h | 2 +- libi2pd/PostQuantum.cpp | 6 +++--- libi2pd_client/HTTPProxy.cpp | 2 +- libi2pd_client/I2PTunnel.cpp | 2 +- libi2pd_client/SOCKS.cpp | 2 +- libi2pd_client/Torrents.cpp | 2 +- libi2pd_client/UDPTunnel.cpp | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libi2pd/ECIESX25519AEADRatchetSession.h b/libi2pd/ECIESX25519AEADRatchetSession.h index 933ce56d..4065a6a9 100644 --- a/libi2pd/ECIESX25519AEADRatchetSession.h +++ b/libi2pd/ECIESX25519AEADRatchetSession.h @@ -239,7 +239,7 @@ namespace garlic std::shared_ptr m_EphemeralKeys; #if OPENSSL_PQ std::unique_ptr m_PQKeys; - std::unique_ptr > m_NSRCK; // before cipher text encryptio + std::unique_ptr > m_NSRCK; // before cipher text encryption #endif SessionState m_State = eSessionStateNew; uint64_t m_SessionCreatedTimestamp = 0, m_LastActivityTimestamp = 0, // incoming (in seconds) diff --git a/libi2pd/PostQuantum.cpp b/libi2pd/PostQuantum.cpp index 881cece4..9f46a2fb 100644 --- a/libi2pd/PostQuantum.cpp +++ b/libi2pd/PostQuantum.cpp @@ -70,7 +70,7 @@ namespace crypto { memcpy(m_CachedPub, pub_key, pub_key_len); m_IsPubCached = true; - LogPrint(eLogDebug, "MLKEM [libressl] cache the pub succes"); + LogPrint(eLogDebug, "MLKEM [libressl] cache the pub success"); } else { LogPrint(eLogError, "MLKEM: can't cache private key [libressl]"); @@ -190,7 +190,7 @@ namespace crypto OPENSSL_cleanse(out_ss, out_ss_len); OPENSSL_free(out_ct); OPENSSL_free(out_ss); - LogPrint(eLogDebug, "MLKEM [libressl] succesfully encaps"); + LogPrint(eLogDebug, "MLKEM [libressl] successfully encaps"); } else LogPrint(eLogError, "MLKEM [libressl]: encapsulation failed"); @@ -222,7 +222,7 @@ namespace crypto OPENSSL_cleanse(out_shared_secret, out_shared_secret_len); OPENSSL_free(out_shared_secret); - LogPrint(eLogDebug, "MLKEM [libressl] succesfully decrypt"); + LogPrint(eLogDebug, "MLKEM [libressl] successfully decrypt"); } else { diff --git a/libi2pd_client/HTTPProxy.cpp b/libi2pd_client/HTTPProxy.cpp index 764f599b..c9447d6d 100644 --- a/libi2pd_client/HTTPProxy.cpp +++ b/libi2pd_client/HTTPProxy.cpp @@ -517,7 +517,7 @@ namespace proxy } else { - // invaild address + // invalid address HostNotFound(dest_host); return true; } diff --git a/libi2pd_client/I2PTunnel.cpp b/libi2pd_client/I2PTunnel.cpp index 4ae377df..bdeb03af 100644 --- a/libi2pd_client/I2PTunnel.cpp +++ b/libi2pd_client/I2PTunnel.cpp @@ -67,7 +67,7 @@ namespace client len = 0; if (!m_SSL) { - // check if something avaiable + // check if something available boost::system::error_code ec; len = m_Socket->available (ec); if (!ec && len > 0) diff --git a/libi2pd_client/SOCKS.cpp b/libi2pd_client/SOCKS.cpp index 6e4a2d77..965f82e7 100644 --- a/libi2pd_client/SOCKS.cpp +++ b/libi2pd_client/SOCKS.cpp @@ -670,7 +670,7 @@ namespace proxy std::string_view addr = m_address.dns.GetString(); if (m_cmd == CMD_RESOLVE) { - // resolve to 255.x.x.x adddress + // resolve to 255.x.x.x address LogPrint(eLogInfo, "SOCKS: Resolve ", addr); boost::asio::post (GetOwner ()->GetService (), [this, addr](void) { diff --git a/libi2pd_client/Torrents.cpp b/libi2pd_client/Torrents.cpp index b89abf09..9e369392 100644 --- a/libi2pd_client/Torrents.cpp +++ b/libi2pd_client/Torrents.cpp @@ -113,7 +113,7 @@ namespace torrents size_t ret = 0; switch (buf[0]) { - case 'i': // interger + case 'i': // integer return ExtractInteger (buf).second; break; case 'l': // list diff --git a/libi2pd_client/UDPTunnel.cpp b/libi2pd_client/UDPTunnel.cpp index b01edc4d..86a550d3 100644 --- a/libi2pd_client/UDPTunnel.cpp +++ b/libi2pd_client/UDPTunnel.cpp @@ -195,7 +195,7 @@ namespace client it++; } m_UnackedDatagrams.erase (m_UnackedDatagrams.begin (), it); - m_IsSendingAllowed = true; // if we recieve ack after path change, now can send new datagrams + m_IsSendingAllowed = true; // if we receive ack after path change, now can send new datagrams if (!m_UnackedDatagrams.empty ()) { // keep armed while anything is unacked, otherwise a full window can't be unblocked