1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-27 16:20:25 +08:00

optimize: api

This commit is contained in:
源文雨
2024-04-16 15:10:47 +09:00
parent dc4fb1ae72
commit 62d3c9f6be
5 changed files with 50 additions and 15 deletions

View File

@@ -228,7 +228,7 @@ const (
)
type clientHandshakeStateTLS13 struct {
c *trsconn
c *Conn
ctx context.Context
serverHello *serverHelloMsg
hello *clientHelloMsg
@@ -272,7 +272,7 @@ type finishedHash struct {
}
type clientHandshakeState struct {
c *trsconn
c *Conn
ctx context.Context
serverHello *serverHelloMsg
hello *clientHelloMsg
@@ -308,7 +308,7 @@ func (c *_trsconn) writeHandshakeRecord(msg handshakeMessage, transcript transcr
return c.writeRecordLocked(recordTypeHandshake, data)
}
func (cout *trsconn) clientHandshake(ctx context.Context) (err error) {
func (cout *Conn) clientHandshake(ctx context.Context) (err error) {
c := (*_trsconn)(unsafe.Pointer(cout))
if c.config == nil {