mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-05 13:07:36 +03:00
Add public getter/setter for SessionState.extMasterSecret
This commit is contained in:
parent
ebe5d664d2
commit
01c746c919
2 changed files with 14 additions and 0 deletions
|
@ -138,6 +138,7 @@ func HttpGetTicket(hostname string, addr string) (*http.Response, error) {
|
|||
sessionState := tls.MakeClientSessionState(sessionTicket, uint16(tls.VersionTLS12),
|
||||
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
|
||||
masterSecret,
|
||||
false,
|
||||
nil, nil)
|
||||
|
||||
err = uTlsConn.SetSessionState(sessionState)
|
||||
|
@ -172,6 +173,7 @@ func HttpGetTicketHelloID(hostname string, addr string, helloID tls.ClientHelloI
|
|||
sessionState := tls.MakeClientSessionState(sessionTicket, uint16(tls.VersionTLS12),
|
||||
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
|
||||
masterSecret,
|
||||
false,
|
||||
nil, nil)
|
||||
|
||||
uTlsConn.SetSessionState(sessionState)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue