new: vendor godicttls package (#265)

For better maintainability we decided to vendor this package instead of importing it.
This commit is contained in:
Gaukas Wang 2023-12-11 21:02:16 -07:00 committed by GitHub
parent feb5a95fc8
commit 9521fba944
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 2602 additions and 17 deletions

View file

@ -0,0 +1,22 @@
package dicttls
// source: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-9
// last updated: March 2023
const (
ECPoint_uncompressed uint8 = 0
ECPoint_ansiX962_compressed_prime uint8 = 1
ECPoint_ansiX962_compressed_char2 uint8 = 2
)
var DictECPointFormatValueIndexed = map[uint8]string{
0: "uncompressed",
1: "ansiX962_compressed_prime",
2: "ansiX962_compressed_char2",
}
var DictECPointFormatNameIndexed = map[string]uint8{
"uncompressed": 0,
"ansiX962_compressed_prime": 1,
"ansiX962_compressed_char2": 2,
}