Skip to content

Commit 37053b0

Browse files
emersionpires
authored andcommitted
Add TLS group and sig scheme TLVs
Add two new constants to mirror changes from this upstream commit: https://git.haproxy.org/?p=haproxy.git;a=commitdiff;h=d738fa4ec0f82de03c85eb8f8590791686098fd1
1 parent eef9d7e commit 37053b0

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

tlv.go

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@ import (
1212

1313
const (
1414
// Section 2.2
15-
PP2_TYPE_ALPN PP2Type = 0x01
16-
PP2_TYPE_AUTHORITY PP2Type = 0x02
17-
PP2_TYPE_CRC32C PP2Type = 0x03
18-
PP2_TYPE_NOOP PP2Type = 0x04
19-
PP2_TYPE_UNIQUE_ID PP2Type = 0x05
20-
PP2_TYPE_SSL PP2Type = 0x20
21-
PP2_SUBTYPE_SSL_VERSION PP2Type = 0x21
22-
PP2_SUBTYPE_SSL_CN PP2Type = 0x22
23-
PP2_SUBTYPE_SSL_CIPHER PP2Type = 0x23
24-
PP2_SUBTYPE_SSL_SIG_ALG PP2Type = 0x24
25-
PP2_SUBTYPE_SSL_KEY_ALG PP2Type = 0x25
26-
PP2_TYPE_NETNS PP2Type = 0x30
15+
PP2_TYPE_ALPN PP2Type = 0x01
16+
PP2_TYPE_AUTHORITY PP2Type = 0x02
17+
PP2_TYPE_CRC32C PP2Type = 0x03
18+
PP2_TYPE_NOOP PP2Type = 0x04
19+
PP2_TYPE_UNIQUE_ID PP2Type = 0x05
20+
PP2_TYPE_SSL PP2Type = 0x20
21+
PP2_SUBTYPE_SSL_VERSION PP2Type = 0x21
22+
PP2_SUBTYPE_SSL_CN PP2Type = 0x22
23+
PP2_SUBTYPE_SSL_CIPHER PP2Type = 0x23
24+
PP2_SUBTYPE_SSL_SIG_ALG PP2Type = 0x24
25+
PP2_SUBTYPE_SSL_KEY_ALG PP2Type = 0x25
26+
PP2_SUBTYPE_SSL_GROUP PP2Type = 0x26
27+
PP2_SUBTYPE_SSL_SIG_SCHEME PP2Type = 0x27
28+
PP2_TYPE_NETNS PP2Type = 0x30
2729

2830
// Section 2.2.7, reserved types
2931
PP2_TYPE_MIN_CUSTOM PP2Type = 0xE0

0 commit comments

Comments
 (0)