Skip to content

Commit

Permalink
update stream ciphers
Browse files Browse the repository at this point in the history
Signed-off-by: Teddysun <[email protected]>
  • Loading branch information
teddysun committed Aug 2, 2017
1 parent 1bb2077 commit 6e31282
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
3 changes: 3 additions & 0 deletions shadowsocks-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ aes-128-cfb
camellia-128-cfb
camellia-192-cfb
camellia-256-cfb
xchacha20-ietf-poly1305
chacha20-ietf-poly1305
chacha20-ietf
chacha20
salsa20
rc4-md5
)
go_ciphers=(
Expand All @@ -93,6 +95,7 @@ aes-192-ctr
aes-128-ctr
chacha20-ietf
chacha20
salsa20
rc4-md5
)
r_ciphers=(
Expand Down
3 changes: 2 additions & 1 deletion shadowsocks-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ echo "# Github: https://github.com/shadowsocks/shadowsocks-go #"
echo "#############################################################"
echo

#Current folder
# Current folder
cur_dir=`pwd`
# Stream Ciphers
ciphers=(
Expand All @@ -31,6 +31,7 @@ aes-192-ctr
aes-128-ctr
chacha20-ietf
chacha20
salsa20
rc4-md5
)
# Color
Expand Down
2 changes: 2 additions & 0 deletions shadowsocks-libev-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ aes-128-cfb
camellia-128-cfb
camellia-192-cfb
camellia-256-cfb
xchacha20-ietf-poly1305
chacha20-ietf-poly1305
chacha20-ietf
chacha20
salsa20
rc4-md5
)
# Color
Expand Down
22 changes: 21 additions & 1 deletion shadowsocks-libev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ aes-128-cfb
camellia-128-cfb
camellia-192-cfb
camellia-256-cfb
xchacha20-ietf-poly1305
chacha20-ietf-poly1305
chacha20-ietf
chacha20
salsa20
rc4-md5
)
# Color
Expand Down Expand Up @@ -194,6 +196,24 @@ centosversion(){
fi
}

version_ge(){
test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"
}

# autoconf version
autoconfversion(){
if [ "$(command -v "autoconf")" ]; then
local version=$(autoconf --version | grep autoconf | awk '{print $4}')
if version_ge ${version} 2.67; then
return 0
else
return 1
fi
else
return 1
fi
}

# Pre-installation settings
pre_install(){
# Check OS system
Expand Down Expand Up @@ -295,7 +315,7 @@ pre_install(){
char=`get_char`
#Install necessary dependencies
yum install -y epel-release && yum makecache
yum install -y unzip openssl openssl-devel gettext gcc autoconf libtool automake make asciidoc xmlto udns-devel libev-devel pcre pcre-devel
yum install -y unzip openssl openssl-devel gettext gcc autoconf libtool automake make asciidoc xmlto udns-devel libev-devel pcre pcre-devel git
}

download() {
Expand Down

0 comments on commit 6e31282

Please sign in to comment.