authorgravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2026-06-14 00:51:17+02:00
committergravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2026-07-05 12:28:20+02:00
log0d2320b18cb479ea6ac0e133206560b86e940849
treea32a0ca1e038ae7e9d87d91085b5ecccaa44fb93
parent52f0477ebea147469b073ab5ef11cccf658f6a8c

std.crypto: fix ASN.1 universal tag 17 name

Rename universal tag with value 17 to `set` to match the value it actually decodes. Reported by @marximimus - Thanks! Fixes #35758

2 files changed, 2 insertions(+), 2 deletions(-)

lib/std/crypto/Certificate.zig+1-1
...@@ -893,7 +893,7 @@ pub const der = struct {...@@ -893,7 +893,7 @@ pub const der = struct {
893 null = 5,893 null = 5,
894 object_identifier = 6,894 object_identifier = 6,
895 sequence = 16,895 sequence = 16,
896 sequence_of = 17,896 set = 17,
897 utc_time = 23,897 utc_time = 23,
898 generalized_time = 24,898 generalized_time = 24,
899 _,899 _,
lib/std/crypto/codecs/asn1.zig+1-1
...@@ -30,7 +30,7 @@ pub const Tag = struct {...@@ -30,7 +30,7 @@ pub const Tag = struct {
30 // 15 is reserved to mean that the tag is >= 3230 // 15 is reserved to mean that the tag is >= 32
31 sequence = 16,31 sequence = 16,
32 /// Elements may appear in any order.32 /// Elements may appear in any order.
33 sequence_of = 17,33 set = 17,
34 string_numeric = 18,34 string_numeric = 18,
35 string_printable = 19,35 string_printable = 19,
36 string_teletex = 20,36 string_teletex = 20,