-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.go
20 lines (16 loc) · 988 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package doq
// Only implementations of the final, published RFC can identify
// themselves as "doq". Until such an RFC exists, implementations MUST
// NOT identify themselves using this string. Implementations of draft
// versions of the protocol MUST add the string "-" and the corresponding
// draft number to the identifier. For example, draft-ietf-dprive-dnsoquic-00
// is identified using the string "doq-i00".
// TlsProtos stores the dnsoquic draft version for TLS protocol announcement
var TlsProtos = []string{"doq-i02"}
// TlsProtosCompat stores alternative TLS protocols for experimental interoperability
var TlsProtosCompat = []string{"doq-i02", "doq-i01", "doq-i00", "doq", "dq"}
// Errors
const (
NoError = 0x00 // No error. This is used when the connection or stream needs to be closed, but there is no error to signal.
InternalError = 0x01 // The DoQ implementation encountered an internal error and is incapable of pursuing the transaction or the connection
)