Skip to content

Commit 3feb546

Browse files
authored
Fixes a bug in validating legacy recordings (#499)
Hashing algorithm is by definition known is therefore set when creating a legacy object. Version is bumped to v2.2.3 Co-authored-by: bjornvolcker <[email protected]>
1 parent 84ad72d commit 3feb546

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/src/sv_auth.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,6 +1489,8 @@ add_bitstream_unit(signed_video_t *self, const uint8_t *bu_data, size_t bu_data_
14891489
self->legacy_sv = legacy_sv_create(self);
14901490
SV_THROW_IF(!self->legacy_sv, SV_MEMORY);
14911491
sv_accumulated_validation_init(self->accumulated_validation);
1492+
// Hash algorithm is by definition known.
1493+
validation_flags->hash_algo_known = true;
14921494
}
14931495
if (nalus_pending_registration && validation_flags->hash_algo_known) {
14941496
SV_THROW(reregister_bu(self));

lib/src/sv_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#define DEFAULT_HASH_SIZE (256 / 8)
5151

5252
#define SV_VERSION_BYTES 3
53-
#define SIGNED_VIDEO_VERSION "v2.2.2"
53+
#define SIGNED_VIDEO_VERSION "v2.2.3"
5454
#define SV_VERSION_MAX_STRLEN 19 // Longest possible string including 'ONVIF' prefix
5555

5656
#define DEFAULT_AUTHENTICITY_LEVEL SV_AUTHENTICITY_LEVEL_FRAME

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('signed-video-framework', 'c',
2-
version : '2.2.2',
2+
version : '2.2.3',
33
meson_version : '>= 0.53.0',
44
default_options : [ 'warning_level=2',
55
'werror=true',

0 commit comments

Comments
 (0)