]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.11] crypto/tls: make ConnectionState.ExportKeyingMaterial a method
authorFilippo Valsorda <hi@filippo.io>
Tue, 21 Aug 2018 20:50:04 +0000 (14:50 -0600)
committerFilippo Valsorda <filippo@golang.org>
Wed, 22 Aug 2018 17:28:12 +0000 (17:28 +0000)
commit2eb8116f9e67c91a79a2526025657dfc19ce7f5f
tree74644f3a9d4afada906733e823f327470a98c8ac
parent4124fe1c2cd33a7ca572d54bfd47409172ba56b1
[release-branch.go1.11] crypto/tls: make ConnectionState.ExportKeyingMaterial a method

The unexported field is hidden from reflect based marshalers, which
would break otherwise. Also, make it return an error, as there are
multiple reasons it might fail.

Fixes #27131

Change-Id: I92adade2fe456103d2d5c0315629ca0256953764
Reviewed-on: https://go-review.googlesource.com/130535
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
(cherry picked from commit 240cb4c75fbe969364edb1a7f7ebd2d827831d34)
Reviewed-on: https://go-review.googlesource.com/130655
13 files changed:
api/go1.11.txt
doc/go1.11.html
src/crypto/tls/common.go
src/crypto/tls/conn.go
src/crypto/tls/handshake_client_test.go
src/crypto/tls/handshake_server_test.go
src/crypto/tls/prf.go
src/crypto/tls/prf_test.go
src/crypto/tls/testdata/Client-TLSv10-ExportKeyingMaterial [new file with mode: 0644]
src/crypto/tls/testdata/Client-TLSv12-ExportKeyingMaterial [new file with mode: 0644]
src/crypto/tls/testdata/Server-TLSv10-ExportKeyingMaterial [new file with mode: 0644]
src/crypto/tls/testdata/Server-TLSv12-ExportKeyingMaterial [new file with mode: 0644]
src/crypto/tls/tls_test.go