diff options
| author | Filippo Valsorda <filippo@golang.org> | 2023-05-22 10:49:07 +0200 |
|---|---|---|
| committer | Filippo Valsorda <filippo@golang.org> | 2023-05-24 23:56:55 +0000 |
| commit | 6824765b4b981291712ae6d60702f6f0350f57d5 (patch) | |
| tree | 0de9f313a7a137e950ee6c748db81d0f2f60dd68 /src/encoding/json/encode.go | |
| parent | 371ebe731bf6ebae3d6914835674e276d98254f5 (diff) | |
| download | go-6824765b4b981291712ae6d60702f6f0350f57d5.tar.xz | |
crypto/tls: add WrapSession and UnwrapSession
There was a bug in TestResumption: the first ExpiredSessionTicket was
inserting a ticket far in the future, so the second ExpiredSessionTicket
wasn't actually supposed to fail. However, there was a bug in
checkForResumption->sendSessionTicket, too: if a session was not resumed
because it was too old, its createdAt was still persisted in the next
ticket. The two bugs used to cancel each other out.
For #60105
Fixes #19199
Change-Id: Ic9b2aab943dcbf0de62b8758a6195319dc286e2f
Reviewed-on: https://go-review.googlesource.com/c/go/+/496821
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
