Skip to content

Commit aadf0ad

Browse files
committed
ASN.1 minor bugfix: fix name of element in TimestampMetadata
RoleHash() does not exist; it's named HashOfSnapshot currently. Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
1 parent f3a39ce commit aadf0ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tuf/encoding/asn1_metadata_definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class TimestampMetadata(univ.Sequence):
141141
NamedType('expires', UTCDateTime()),
142142
NamedType('version', Version()),
143143
NamedType('num-role-hashes', Length()),
144-
NamedType('role-hashes', univ.SequenceOf(componentType=RoleHash()))
144+
NamedType('role-hashes', univ.SequenceOf(componentType=HashOfSnapshot()))
145145
)
146146

147147

0 commit comments

Comments
 (0)