-
Notifications
You must be signed in to change notification settings - Fork 2.7k
更新shadowsocks-libev到最新的commit,改进mbedtls3.6补丁 #1670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Current mbedtls 3.6 fix uses private fields in mbedtls, which increases complexity and may break functionality in future mbedtls versions. So rework this patch to remove them.
There is a not merged pull request for bug fixing
Change tarball name to avoid downloading from openwrt mirror, which is not the latest version.
|
@msdos03 源码中 |
|
@zxlhhyccc 理论上我的修改除了去掉cipher结构体中的info结构体指针之外和原先等价,我用ss-local测试了stream和aead的几个加密算法,没发现问题。 |
|
@msdos03 现在的问题是cipher结构体中的RC4_MD5也删除了,不知道有没有影响。 |
|
@zxlhhyccc 并没有去掉,只是换了一种更直接的key和nounce大小获取方式不再需要这个判断了。 |
|
@msdos03 可以合并。 |
|
@msdos03 是否应该启用这个PR:shadowsocks/shadowsocks-libev#2953 |
除非你能一同把big endian机器的兼容性问题全部解决,否则我觉得没有必要 |
理论上应该影响不大吧? |
如果能兼容BE机器还是挺好的,可惜这一点改动大概不够,也没啥意义 |
mbedtls3.6补丁中使用了私有结构体成员,mbedtls不能保证此代码能在将来的版本中正常工作,所以修改一下不使用他们。
在下载源代码时openwrt会先检查官方镜像中是否存在源码包,因此不会从github克隆,官方镜像中的源码包仍然是3.3.5的release版本,并非Makefile的PKG_SOURCE_VERSION中指定的最新版本,所以修改PKG_SOURCE来解决这个问题。
另外,新增一个上游迟迟没有合并的修复性质补丁。
@zxlhhyccc