Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
5352fae6
Commit
5352fae6
authored
Jan 05, 2021
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check deprecated ciphers (#2651)
parent
e51f1779
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
core/build.gradle.kts
core/build.gradle.kts
+1
-0
core/src/main/java/com/github/shadowsocks/bg/ProxyInstance.kt
.../src/main/java/com/github/shadowsocks/bg/ProxyInstance.kt
+7
-0
core/src/main/res/values/arrays.xml
core/src/main/res/values/arrays.xml
+6
-0
core/src/main/rust/shadowsocks-rust
core/src/main/rust/shadowsocks-rust
+1
-1
No files found.
core/build.gradle.kts
View file @
5352fae6
...
...
@@ -38,6 +38,7 @@ cargo {
profile
=
findProperty
(
"CARGO_PROFILE"
)
?.
toString
()
?:
currentFlavor
extraCargoBuildArguments
=
listOf
(
"--bin"
,
libname
!!
)
featureSpec
.
noDefaultBut
(
arrayOf
(
"stream-cipher"
,
"logging"
,
"local-flow-stat"
,
"local-dns"
))
...
...
core/src/main/java/com/github/shadowsocks/bg/ProxyInstance.kt
View file @
5352fae6
...
...
@@ -53,6 +53,13 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
throw
UnknownHostException
().
initCause
(
e
)
}
?.
hostAddress
?:
throw
UnknownHostException
()
}
// check the crypto
if
(
profile
.
method
==
"xchacha20-ietf-poly1305"
)
{
throw
IllegalArgumentException
(
"cipher xchacha20-ietf-poly1305 is deprecated."
)
}
if
(
profile
.
method
==
"aes-192-gcm"
)
{
throw
IllegalArgumentException
(
"cipher aes-192-gcm is deprecated."
)
}
}
/**
...
...
core/src/main/res/values/arrays.xml
View file @
5352fae6
...
...
@@ -4,11 +4,14 @@
<item>
NONE
</item>
<item>
RC4-MD5
</item>
<item>
AES-128-CFB
</item>
<item>
AES-192-CFB
</item>
<item>
AES-256-CFB
</item>
<item>
AES-128-CTR
</item>
<item>
AES-192-CTR
</item>
<item>
AES-256-CTR
</item>
<item>
BF-CFB
</item>
<item>
CAMELLIA-128-CFB
</item>
<item>
CAMELLIA-192-CFB
</item>
<item>
CAMELLIA-256-CFB
</item>
<item>
SALSA20
</item>
<item>
CHACHA20
</item>
...
...
@@ -22,11 +25,14 @@
<item>
none
</item>
<item>
rc4-md5
</item>
<item>
aes-128-cfb
</item>
<item>
aes-192-cfb
</item>
<item>
aes-256-cfb
</item>
<item>
aes-128-ctr
</item>
<item>
aes-192-ctr
</item>
<item>
aes-256-ctr
</item>
<item>
bf-cfb
</item>
<item>
camellia-128-cfb
</item>
<item>
camellia-192-cfb
</item>
<item>
camellia-256-cfb
</item>
<item>
salsa20
</item>
<item>
chacha20
</item>
...
...
shadowsocks-rust
@
9000b31f
Subproject commit
7bf6d320a743147d165c3ff1a8d5d1992db3e97
0
Subproject commit
9000b31ffb9805324719ff5ba57c9338e357d1f
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment