This repository was archived by the owner on Jul 26, 2022. It is now read-only.
Open
Conversation
Contributor
Trisia
commented
Jan 12, 2022
- 修复了目前常见的几个BUG:
- DER编码前置0问题
- 握手消息签名值格式问题
- alert报警信息相关问题
- 增加了TLCP SOCKET系列接口
2. 按照《GMT0015 5.2.2》 issuerUniqueID 和 subjectUniqueID 是可选字段,因此需要根据是否存在来判断读取。
2. 兼容了证书签名算法中可选参数存在为NULL的情况。 见 中国ROOTCA 《社会公众应用根证书(SM2).cer》
为了保证TBSCertificate序列化为DER时和读取到的完全一致,保留了对算法标识符NULL的兼容。否则将导致证书验证失效。 对于TBSCertificate中可选参数 issuerUniqueID 和 subjectUniqueID需要根据是否存在来判断是否序列化,否则会造成读取和DER序列化内容不一致,造成验证失效。 SM2默认ID预处理1 加速目前存在问题,暂时注释,望得到修复。
容忍不支持的算法套件,容忍协议不规范传递的hello 消息的extensions。
增加了TLCP消息解析的封装 增加了TLCP测试用例 统一pem_str_read的名称为pem_read_str,并且调整函数错误码为1和-1
简化部分处理函数参数 实现了服务端密钥交换消息
实现了读取客户端密钥变更和finished消息的方法
调整了Alert消息的仅在TLCP_SOCKET使用,并且会根据消息类型关闭连接。 测试用例增加了HTTP实现。
调整了私有变量参数名称前缀
修复了判断条件逻辑错误造成错误消息打印
补充了C++混编的C导出头
修复了连接关闭时没有加密消息造成的解密错误 修复了两个错误的alert消息类型
握手环节异常时,主动关闭socket连接。
对失败操作及时断关闭socket
移除DEBUG日志 在读取到alert消息时返回打印debug日志和-1
握手环节中随机数均采用外部ctx中的随机源产生
调整了上下文名称为配置 连接对象中包含了配置信息,不再需要作为参数传入 增加了listnener 对象用于处理服务端监听和接收连接 增加了错误处理器
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.