FISCO-BCOS / FISCO-BCOS/web3sdk

关于源码中验证peer结点证书的问题

Open
#591 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
122
Forks
81
PR merge metrics
No merged PRs in 30d

Description

在源码里面,首先判断preverify_ok等于true后,进行之后的判断逻辑
但是后面就算出错,比如
if (!cert)
{
HOST_LOG(ERROR) << LOG_DESC("Get cert failed");
return preverified;
}
直接返回true,这样不会有问题吗

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Trace the certificate-verification path containing preverify_ok and the !cert branch, then run the relevant existing verification tests if present. Done means the behavior of returning preverified after a later certificate error is clarified and, if confirmed as a bug, covered by a regression test and corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.