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 {
893893 null = 5,
894894 object_identifier = 6,
895895 sequence = 16,
896 sequence_of = 17,
896 set = 17,
897897 utc_time = 23,
898898 generalized_time = 24,
899899 _,
lib/std/crypto/codecs/asn1.zig+1-1
......@@ -30,7 +30,7 @@ pub const Tag = struct {
3030 // 15 is reserved to mean that the tag is >= 32
3131 sequence = 16,
3232 /// Elements may appear in any order.
33 sequence_of = 17,
33 set = 17,
3434 string_numeric = 18,
3535 string_printable = 19,
3636 string_teletex = 20,