]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: add a certificate cache implementation
authorRoland Shoemaker <roland@golang.org>
Mon, 29 Aug 2022 16:32:34 +0000 (09:32 -0700)
committerRoland Shoemaker <roland@golang.org>
Mon, 7 Nov 2022 19:46:27 +0000 (19:46 +0000)
commit81ed1354e8fef60cac1f7043d723d9d38c9ce174
treec130be109c1bf8c0425c52b872460e8acebf46d9
parent92c7df116ecbd8f230b48f72eb44fa7de5d13233
crypto/tls: add a certificate cache implementation

Adds a BoringSSL CRYPTO_BUFFER_POOL style reference counted intern
table for x509.Certificates. This can be used to significantly reduce
the amount of memory used by TLS clients when certificates are reused
across connections.

Updates #46035

Change-Id: I8d7af3bc659a93c5d524990d14e5254212ae70f4
Reviewed-on: https://go-review.googlesource.com/c/go/+/426454
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/crypto/tls/cache.go [new file with mode: 0644]
src/crypto/tls/cache_test.go [new file with mode: 0644]