diff --git a/agents/tls_agent.go b/agents/tls_agent.go index 1f0aaa1..4611b15 100644 --- a/agents/tls_agent.go +++ b/agents/tls_agent.go @@ -103,7 +103,6 @@ func (a *TLSAgent) Run(conn *Connection) { if !notCompleted && conn.CryptoStates[EncryptionLevel1RTT] == nil { a.Logger.Printf("Handshake has completed, installing protected crypto {read=%s, write=%s}\n", hex.EncodeToString(conn.Tls.ProtectedReadSecret()), hex.EncodeToString(conn.Tls.ProtectedWriteSecret())) conn.CryptoStates[EncryptionLevel1RTT] = NewProtectedCryptoState(conn.Tls, conn.Tls.ProtectedReadSecret(), conn.Tls.ProtectedWriteSecret()) - conn.ExporterSecret = conn.Tls.ExporterSecret() // TODO: Check negotiated ALPN ? diff --git a/connection.go b/connection.go index 5b391d1..cacbbf4 100644 --- a/connection.go +++ b/connection.go @@ -30,8 +30,6 @@ type Connection struct { CryptoStates map[EncryptionLevel]*CryptoState - ExporterSecret []byte - ReceivedPacketHandler func([]byte, unsafe.Pointer) SentPacketHandler func([]byte, unsafe.Pointer)