]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: small bogo shim test tidying
authorDaniel McCarney <daniel@binaryparadox.net>
Sat, 15 Feb 2025 15:07:19 +0000 (10:07 -0500)
committerDaniel McCarney <daniel@binaryparadox.net>
Fri, 7 Mar 2025 20:37:36 +0000 (12:37 -0800)
commitbc5f4a555e933e6861d12edba4c2d87ef6caf8e6
tree548e8bc41001d89571ab95f752c5f702ae3f5e4b
parente6908846df5f521ba0c927c3ce4a06ed11a6d04c
crypto/tls: small bogo shim test tidying

1. onResumeShimWritesFirst is unused, replace the binding with an
   underscore.
2. in the bogoShim() function when looping through resumeCount+1 the
   tlsConn read for loop only breaks for non-nil err, so there's no need
   to check that again after the loop body.

Updates #72006

Change-Id: Ieff45d26df33d71003a2509ea5b2b06c5fa0e1d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/650715
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/crypto/tls/bogo_shim_test.go