Skip to content

BCB Verifier Fix#155

Open
jeronstone wants to merge 6 commits intomainfrom
151-bcb-verif
Open

BCB Verifier Fix#155
jeronstone wants to merge 6 commits intomainfrom
151-bcb-verif

Conversation

@jeronstone
Copy link
Copy Markdown
Contributor

Closes #151
Closes #152

@jeronstone jeronstone added this to the BSL v1.1.0 milestone Apr 7, 2026
@jeronstone jeronstone self-assigned this Apr 7, 2026
@jeronstone jeronstone requested a review from a team as a code owner April 7, 2026 14:54
@github-project-automation github-project-automation bot moved this to Todo in BSL Apr 7, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
51.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@mfarina1 mfarina1 moved this from Todo to In Progress in BSL Apr 7, 2026
Copy link
Copy Markdown
Collaborator

@BrianSipos BrianSipos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Principal changes look good, only one question which can be deferred to a separate issue+PR if needed.

BSL_TlmCounters_IncrementCounter(lib, BSL_TLM_SECOP_VERIFIER_COUNT, 1);
BSL_AbsSecBlock_Deinit(&abs_sec_block);

// TODO(bvb) Check postconditions that the block actually was removed
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can get rid of this, as it looks like a copy-paste, and also from wherever it was copied from. If there is a need to augment what is already here it belongs in an issue ticket.

BSL_SecParam_t results_as_params[result_count];
for (size_t i = 0; i < result_count; i++)
{
BSL_SecResult_t *result = BSLB_SecResultList_get(abs_sec_block.results, i);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use pointer-to-const to make sonar happy.

BSL_TlmCounters_IncrementCounter(lib, BSL_TLM_SECOP_ACCEPTOR_COUNT, 1);
BSL_AbsSecBlock_Deinit(&abs_sec_block);

// TODO(bvb) Check postconditions that the block actually was removed
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this comment; policing the BPA is the job of test fixtures not the BSL.

{
errcode = BSL_SecOper_IsRoleSource(sec_oper) == true
? BSL_ExecBIBSource(sec_ctx->execute, lib, bundle, sec_oper, outcome)
: BSL_ExecBIBAccept(sec_ctx->execute, lib, bundle, sec_oper, outcome);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there no BIB verifier branch here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

BCB source should set sec block number in sec oper (backend sec ctx) Fix BCB verifier role

3 participants