]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: avoid referencing potentially unused symbols in init
authorDamien Neil <dneil@google.com>
Fri, 26 May 2023 14:57:45 +0000 (07:57 -0700)
committerDamien Neil <dneil@google.com>
Fri, 26 May 2023 15:24:38 +0000 (15:24 +0000)
commita4cd36500b8c2f25827afb8baae4fb539bc88256
tree42751705e030a25acd8bf288f74f1964e8a49b6d
parentf89d575d9ea9a192440f3ba67b6333b997be2bfb
crypto/tls: avoid referencing potentially unused symbols in init

A reference to a function in a "var _ = ..." init-time
initialization keeps the symbol live. Move references to
Config.EncryptTicket and Config.DecryptTicket into tests.
These references increase the size of an unused import of
crypto/tls by about 1MiB.

Change-Id: I6d62a6dcbd73e22972a217afcda7395e909b52cc
Reviewed-on: https://go-review.googlesource.com/c/go/+/498595
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Damien Neil <dneil@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/crypto/tls/ticket.go
src/crypto/tls/ticket_test.go [new file with mode: 0644]