14 Commits

Author SHA1 Message Date
jchx 3db04fa4af Ignore unsupported decoder providers during chain discovery
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/1507

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-06-30 09:40:13 +08:00
xuzhengyi 278a755f38 fix:Fixing some issues,See details for the list.
List of issues:
1: The certificate time check is not considered an error if there is no callback return value of 0 at the lower level.
2: Some comment issues.
3: The provider initialization is not protected by a lock.
4: Some functions lack parameter checks.

Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/1471

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-05-20 22:26:41 +08:00
liwei3013 f664eda26f refactor: make list traversal stateless and harden x509 verification
add node-based BSL list helpers and migrate shared-list readers off curr-mutating macros
precompute DN UTF-8 during parse and reuse cached values in X.509 compare/verify
clean up app UIO ownership handling and expand PKI/TLS regression coverage

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-04-21 20:20:46 +08:00
Dongjianwei001 51f41da579 Sync the code of openhitls-03
Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-04-01 18:46:46 +08:00
libiaoliang f4f6c86eb1 Correction of crypto error stack
Co-authored-by: xuzhengyi<xuzhengyi1@h-partners.com>

# message auto-generated for no-merge-commit merge:
!1016 merge cherry-pick-mr-944-1768913527687-auto into openhitls-0.3

Correction of crypto error stack

Created-by: liwei3013
Commit-by: xuzhengyi
Merged-by: dumb
Description: <!--  感谢您提交 Pull Request!以下是一些提示:

1) 如果您是第一次提交,请阅读我们的贡献者指南:https://gitcode.com/openHiTLS/openhitls/wiki/FAQ-社区需求贡献流程.md

-->

**此 PR 的作用 / 为什么需要它**:

**自检清单**:

- [ ] **测试**:代码是否已有UT/ST测试用例覆盖,新增测试用例是否随本PR一并上库
- [ ] **接口**:是否涉及对外接口变更,变更已通过接口评审
- [ ] **文档**:是否涉及文档修改

<!-- **给审查者的特别说明**: -->
<!-- + - [ ] 是否导致无法前向兼容 -->
<!-- + - [ ] 是否涉及依赖的三方库变更 -->

See merge request: openHiTLS/openhitls!1016

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 19:50:37 +08:00
Dongjianwei001 4ed1ab3ef8 Algorithm performance optimization and code refactoring.
Co-authored-by: Dongjianwei001<dongjianwei1@huawei.com>

# message auto-generated for no-merge-commit merge:
!807 merge sync_main into main

Algorithm performance optimization and code refactoring.

Created-by: Dongjianwei001
Commit-by: Dongjianwei001
Merged-by: liwei3013
Description: Synchronize HiTLS code

See merge request: openHiTLS/openhitls!807

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 19:50:32 +08:00
Ooohui 8a4abdc2cd Modify the code issues
Co-authored-by: Ooohui<zhanghui160@huawei.com>

# message auto-generated for no-merge-commit merge:
!811 merge main1 into main

Modify the code issues

Created-by: Ooohui
Commit-by: Ooohui
Merged-by: liwei3013
Description: Modify the code issues

See merge request: openHiTLS/openhitls!811

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 19:50:30 +08:00
Ooohui 546420a052 Optimize the code to reduce ROM space
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/575

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 19:50:25 +08:00
jchx 773408e406 fix memory leaks of codeskey
Co-authored-by: jchx<chenqi180@huawei.com>

# message auto-generated for no-merge-commit merge:
!826 merge sync into openhitls-0.2

fix memory leaks of codeskey

Created-by: jchx
Commit-by: jchx
Merged-by: liwei3013
Description: fix memory leaks of codeskey

See merge request: openHiTLS/openhitls!826

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-12-09 10:29:30 +08:00
zhengzeyang b39b66a2fd Fix review issues.
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/403

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-07-26 18:07:44 +08:00
离标量 65581d2202 Code Standard Optimization and Refactoring
Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-07-14 21:31:23 +08:00
Ooohui b84fcf658b fix the review issues
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/308

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-06-28 18:59:46 +08:00
xxlu d0b676b516 Fix the review issues
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/294

Signed-off-by: lanming <lanming@huawei.com>
2025-05-29 20:02:50 +08:00
liwei3013 cea047ff0a refactor algorithm module provider interfaces to be compatible with no-provider's interfaces
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/260
2025-05-08 21:14:06 +08:00