Skip to content
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

Adds same auth report logic to legacy code #286

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion lib/src/legacy/legacy_h26x_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,16 @@ legacy_maybe_validate_gop(legacy_sv_t *self, legacy_h26x_nalu_t *nalu)
update_validation_status = true;
}
self->gop_info->verified_signature_hash = -1;
self->validation_flags.has_auth_result = true;
validation_flags->has_auth_result = true;
if (latest->authenticity == SV_AUTH_RESULT_NOT_SIGNED) {
// Only report "stream is unsigned" in the accumulated report.
validation_flags->has_auth_result = false;
}
if (latest->authenticity == SV_AUTH_RESULT_SIGNATURE_PRESENT) {
// Do not report "stream is signed" more than once.
validation_flags->has_auth_result =
latest->authenticity != self->accumulated_validation->authenticity;
}
public_key_has_changed |= latest->public_key_has_changed;
}
SV_THROW(legacy_h26x_nalu_list_update_status(nalu_list, update_validation_status));
Expand Down
Loading