Skip to content

Commit

Permalink
Drops logging exporter secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiraux committed Jan 22, 2020
1 parent cdc4e71 commit ef222e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion agents/tls_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?

Expand Down
2 changes: 0 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ type Connection struct {

CryptoStates map[EncryptionLevel]*CryptoState

ExporterSecret []byte

ReceivedPacketHandler func([]byte, unsafe.Pointer)
SentPacketHandler func([]byte, unsafe.Pointer)

Expand Down

0 comments on commit ef222e6

Please sign in to comment.