mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-22 15:16:58 +00:00
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.
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
_ss_server()
|
|
{
|
|
local cur prev opts ciphers
|
|
opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -6 -d -v -h --reuse-port --fast-open --acl --manager-address --mtu --mptcp --no-delay --key --plugin --plugin-opts --help'
|
|
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'
|
|
COMPREPLY=()
|
|
cur=${COMP_WORDS[COMP_CWORD]}
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
case "$prev" in
|
|
-f|-c|--acl)
|
|
_filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
|
|
;;
|
|
-s|-b)
|
|
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
|
|
;;
|
|
-m)
|
|
COMPREPLY=( $(compgen -W "$ciphers" -- ${cur}) )
|
|
;;
|
|
-a)
|
|
_allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
|
|
;;
|
|
-p|-l|-k|-t|-n|-d|--mtu|--key|--plugin|--plugin-opts)
|
|
;;
|
|
--manager-address)
|
|
_known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
|
|
_filedir || COMPREPLY+=( $(compgen -o plusdirs -f ${cur}) )
|
|
;;
|
|
-i)
|
|
_available_interfaces -a || true
|
|
;;
|
|
*)
|
|
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
|
;;
|
|
esac
|
|
}
|
|
|
|
complete -F _ss_server ss-server
|