Commit Graph
32 Commits
Author SHA1 Message Date
Max Lv 537bc77e79 Make headers and leaf modules compile as C++
Wrap the declarations of every project header in extern "C" (after the
system includes, which must keep C++ linkage), so converted modules and
the remaining C files agree on linkage.

In the leaf modules, cast allocator and memchr results explicitly,
rename identifiers called new, replace the getpwnam_r VLA with the
fixed 16 KiB buffer the loop already capped itself at, and make the
rlimit initialiser conversion explicit. All of this is still valid C.
2026-10-14 22:51:15 +08:00
Max Lv bdc77408cb Rename to shadowsocks-c with libuv, async DNS and CI lint (#3051)
Rename the project to shadowsocks-c while retaining ss-* commands, the embedding ABI, and legacy library/package lookup compatibility.

Replace libev with bundled libuv for IOCP/kqueue event backends, expand asynchronous runtime DNS coverage, and add actionlint/Ruff with strict clang-tidy failure handling. Validate native platforms, static builds, packaging, interoperability, sanitizers, and canonical/legacy consumers.

All 22 hosted checks pass at reviewed head a8493250eb.
2026-09-11 14:18:37 +08:00
Max Lv 201e70c4bd Modernize C builds with offline dependencies and portable runtime helpers (#3050)
Bundle pinned offline dependencies, remove libcork/libipset and submodule requirements, and add portable runtime helpers with relocatable static/shared library installations.

Add Clang static build validation for Linux/musl, macOS and Windows, real TCP/UDP and SIP003 interoperability coverage, and recorded performance tradeoffs. All 21 hosted checks pass at the reviewed PR head 8d504e6218.
2026-09-11 13:42:11 +08:00
Chinsyo 7bd382042b bump copyright year 2019-03-21 12:39:29 +08:00
Max Lv cd98427ebd Add missing fast open headers 2018-08-29 01:38:43 -07:00
Jared Hillier b7f3e2226c TCP Fast Open support for ss-tunnel (#2150)
* ...

* ...

* ...

* Update README.md

* Update README.md

* TCP Fast Open support

* TCP Fast Open support

* TCP Fast Open CONNECT_IN_PROGRESS

* TCP Fast Open support

* TCP Fast Open support

* TCP Fast Open support

* TCP Fast Open support

* TCP Fast Open support via conf

* Cross-platform support for TCP Fast Open

* Cross-platform support for TCP Fast Open

* Enable SO_KEEPALIVE client side

* TCP Fast Open is not supported on this platform

* TCP Fast Open support

* Update tunnel.c

* It's from my forked repo, so please ignore any changes in README.md

* Fix trailing whitespace

* Fix #1376
2018-08-28 18:42:48 +08:00
Max Lv 204037b100 Simplify the handshake part 2018-05-06 11:41:29 +08:00
Max Lv 85a64ae836 Bump version 2018-01-15 17:25:03 -08:00
Max Lv 88d6ea0948 Add delayed connecting in ss-tunnel 2017-03-11 09:21:42 +08:00
Max Lv 44b0eae3ef Fix #1291 2017-02-23 09:35:12 +08:00
Max Lv 4ebe5aeb12 Add SIP004 (AEAD) support 2017-01-29 10:10:44 +08:00
Max Lv 61b82c45c5 Add SIP003 plugin support (#1044)
https://github.com/shadowsocks/shadowsocks-org/issues/28
2017-01-08 01:10:00 -06:00
Max Lv 8cb4f81eba Add HTTP/TLS obfuscating. [SIP001] (#1009)
Add experimental HTTP/TLS obfuscating as an **optional extension** of shadowsocks protocol.

More discussions can be found here: https://github.com/shadowsocks/shadowsocks-org/issues/26

As this feature is still a SIP (Shadowsocks Improvement Proposal), it's very unstable and experimental. So, 

1. Don't enable it unless you know what it is.
2. Be very careful when using it in production environment.
2016-12-27 02:53:25 -06:00
Max Lv d319c0300c Add mptcp option, close #756 2016-08-04 13:30:39 +08:00
Kim 08f873adc7 Roll up year to 2016 2016-04-22 22:50:26 +08:00
Max Lv f4fa30da5c Refine buffer handling 2015-11-29 20:01:50 +08:00
Max Lv 552fca1bff Use one time key for BLAKE2b 2015-09-22 17:57:44 +08:00
Max Lv d3e43e09a2 Refine the authentication for true CCA 2015-09-22 17:57:44 +08:00
Max Lv 5ae4df94e4 Update the hash function 2015-09-21 09:06:48 +08:00
Max Lv 9e021aa919 add CRC8 for payload authentication 2015-09-15 12:28:02 +08:00
Max Lv 40e9be0021 Avoid getaddrinfo() in the main loop 2015-01-12 16:49:47 +09:00
Max Lv e5289e9ba4 Replace libasyncns with libudns 2015-01-10 12:31:13 +09:00
Max Lv 2a15e97196 bump version 2015-01-07 21:54:19 +09:00
Max Lv b198d1da2e bump version 2014-11-12 13:12:59 +08:00
Max Lv 08a35fd1bb handle sigterm and sigkill 2014-11-12 11:52:34 +08:00
Max Lv 1a3e6b5127 refine the buffer idx 2014-08-01 13:42:32 +08:00
Max Lv cf04f73a98 refine buffer handling 2014-08-01 13:35:46 +08:00
Max Lv aec9f9bc9a add license headers 2014-05-25 13:13:39 +08:00
Max Lv a3172adafd resolve dest addr remotely in ss-tunnel 2014-04-23 11:51:57 +08:00
Max Lv 2b92b57bed fix the ambiguous type defination 2014-02-27 08:11:16 +08:00
Max Lv 6107427bf0 WiP: handle both ipv4 and ipv6 2014-02-21 11:58:41 +09:00
Max Lv 2153e3fd04 WiP: add tunnel mode 2014-02-21 11:58:41 +09:00