mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-05 17:54:33 +00:00
* Remove the stream ciphers The unauthenticated stream ciphers (aes-*-cfb, aes-*-ctr, camellia-*-cfb, chacha20, chacha20-ietf, salsa20) are gone from every build, together with the SS_ENABLE_LEGACY option, the C++ stream codecs, their C test oracle and the stream-only tests and configurations. A configuration naming one of them, or RC4/table, now fails at startup with a message pointing to an AEAD method, and test_cli checks that. Shell completions list only the supported methods (and now include the 2022 ones), and the docs and the compatibility contract say the stream ciphers were removed. * Drop the Mbed TLS CFB requirement and stale stream-cipher examples CFB was only needed by the removed stream ciphers, so a system Mbed TLS built without it no longer fails to configure. The public header example now uses aes-256-gcm.
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
#compdef ss-server
|
|
|
|
local ciphers
|
|
ciphers='(aes-128-gcm aes-192-gcm aes-256-gcm chacha20-ietf-poly1305 xchacha20-ietf-poly1305 2022-blake3-aes-128-gcm 2022-blake3-aes-256-gcm 2022-blake3-chacha20-poly1305)'
|
|
|
|
_arguments "-h::" \
|
|
"-s:server host:_hosts" \
|
|
"-p:server port:" \
|
|
"-l:local port:" \
|
|
"-k:password:" \
|
|
"-m:encrypt method:$ciphers" \
|
|
"-a:run as user:_users" \
|
|
"-f:pid file:_files" \
|
|
"-t:timeout:" \
|
|
"-c:configure file:_files" \
|
|
"-n:max number of open files:" \
|
|
"-i:bind interface:_net_interfaces" \
|
|
"-b:local address:(127.0.0.1 \:\:1 0.0.0.0 \:\:)" \
|
|
"-u:enable udp:" \
|
|
"-U:udp only:" \
|
|
"-v:verbose mode:" \
|
|
"-6:ipv6 first:" \
|
|
"-d:nameserver for internal dns:" \
|
|
"--manager-address:manager address:" \
|
|
"--reuse-port::" \
|
|
"--fast-open::" \
|
|
"--acl:acl file:_files" \
|
|
"--mtu::" \
|
|
"--mptcp::" \
|
|
"--no-delay::" \
|
|
"--key:key in base64:" \
|
|
"--plugin:plugin name:" \
|
|
"--plugin-opts:plugin options:" \
|
|
"--help::"
|
|
|