File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
"context"
11
11
"crypto"
12
12
"crypto/x509"
13
+ "fmt"
13
14
"io"
14
15
"net"
15
16
"sync"
@@ -23,9 +24,21 @@ import (
23
24
// only supports Elliptic Curve based groups. See RFC 8446, Section 4.2.7.
24
25
type CurveID uint16
25
26
27
+ // CipherSuiteName returns the standard name for the passed cipher suite ID
28
+ //
29
+ // Not Implemented.
30
+ func CipherSuiteName (id uint16 ) string {
31
+ return fmt .Sprintf ("0x%04X" , id )
32
+ }
33
+
26
34
// ConnectionState records basic TLS details about the connection.
27
35
type ConnectionState struct {
28
36
// TINYGO: empty; TLS connection offloaded to device
37
+ //
38
+ // Minimum (empty) fields for fortio.org/log http logging and others
39
+ // to compile and run.
40
+ PeerCertificates []* x509.Certificate
41
+ CipherSuite uint16
29
42
}
30
43
31
44
// ClientAuthType declares the policy the server will follow for
You can’t perform that action at this time.
0 commit comments