Skip to content

Commit fff0abf

Browse files
authored
Merge pull request #67 from TimWolla/tlv-unique-id
Add PP2_TYPE_UNIQUE_ID
2 parents 0aca5f2 + 267b09d commit fff0abf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tlv.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const (
1616
PP2_TYPE_AUTHORITY PP2Type = 0x02
1717
PP2_TYPE_CRC32C PP2Type = 0x03
1818
PP2_TYPE_NOOP PP2Type = 0x04
19+
PP2_TYPE_UNIQUE_ID PP2Type = 0x05
1920
PP2_TYPE_SSL PP2Type = 0x20
2021
PP2_SUBTYPE_SSL_VERSION PP2Type = 0x21
2122
PP2_SUBTYPE_SSL_CN PP2Type = 0x22
@@ -97,6 +98,7 @@ func (p PP2Type) Registered() bool {
9798
PP2_TYPE_AUTHORITY,
9899
PP2_TYPE_CRC32C,
99100
PP2_TYPE_NOOP,
101+
PP2_TYPE_UNIQUE_ID,
100102
PP2_TYPE_SSL,
101103
PP2_SUBTYPE_SSL_VERSION,
102104
PP2_SUBTYPE_SSL_CN,

tlv_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestInvalidV2TLV(t *testing.T) {
100100

101101
func TestV2TLVPP2Registered(t *testing.T) {
102102
pp2RegTypes := []PP2Type{
103-
PP2_TYPE_ALPN, PP2_TYPE_AUTHORITY, PP2_TYPE_CRC32C, PP2_TYPE_NOOP,
103+
PP2_TYPE_ALPN, PP2_TYPE_AUTHORITY, PP2_TYPE_CRC32C, PP2_TYPE_NOOP, PP2_TYPE_UNIQUE_ID,
104104
PP2_TYPE_SSL, PP2_SUBTYPE_SSL_VERSION, PP2_SUBTYPE_SSL_CN,
105105
PP2_SUBTYPE_SSL_CIPHER, PP2_SUBTYPE_SSL_SIG_ALG, PP2_SUBTYPE_SSL_KEY_ALG,
106106
PP2_TYPE_NETNS,

0 commit comments

Comments
 (0)