mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-06 21:47:36 +03:00
resolving conflict
- Manually resolved conflict from naming convention and updated functionality. - WIP: Some tests must be redesigned - WIP: Support TLS 1.3
This commit is contained in:
parent
2a5aa617d0
commit
617d964a38
20 changed files with 266 additions and 104 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
"net/url"
|
||||
"time"
|
||||
|
||||
"github.com/refraction-networking/utls"
|
||||
tls "github.com/refraction-networking/utls"
|
||||
"golang.org/x/net/http2"
|
||||
)
|
||||
|
||||
|
@ -304,6 +304,8 @@ func forgeConn() {
|
|||
clientUtls.SetUnderlyingConn(clientConn)
|
||||
|
||||
hs := clientUtls.HandshakeState
|
||||
|
||||
// TODO: Redesign this part to use TLS 1.3
|
||||
serverTls := tls.MakeConnWithCompleteHandshake(serverConn, hs.ServerHello.Vers, hs.ServerHello.CipherSuite,
|
||||
hs.MasterSecret, hs.Hello.Random, hs.ServerHello.Random, false)
|
||||
|
||||
|
@ -322,6 +324,7 @@ func forgeConn() {
|
|||
|
||||
buf := make([]byte, 13)
|
||||
read, err := serverTls.Read(buf)
|
||||
|
||||
if err != nil {
|
||||
fmt.Printf("error reading server: %+v\n", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue