From ef222e65a0b4ff1a6a6518b19b671cd986142906 Mon Sep 17 00:00:00 2001 From: Maxime Piraux Date: Wed, 22 Jan 2020 14:45:45 +0100 Subject: [PATCH] Drops logging exporter secrets --- agents/tls_agent.go | 1 - connection.go | 2 -- 2 files changed, 3 deletions(-) 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)