Skip to content

Commit c21afb8

Browse files
kevmo314daenney
authored andcommittedDec 31, 2022
Ignore lint error on Subjects() deprecation
The API is expected to be called with a new cert pool. The deprecation has no suggested alternative.
1 parent 0b11454 commit c21afb8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎AUTHORS.txt

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Jozef Kralik <jojo.lwin@gmail.com>
2929
Julien Salleyron <julien.salleyron@gmail.com>
3030
Juliusz Chroboczek <jch@irif.fr>
3131
Kegan Dougal <kegan@matrix.org>
32+
Kevin Wang <kevmo314@gmail.com>
3233
Lander Noterman <lander.noterman@basalte.be>
3334
Len <len@hpcnt.com>
3435
Lukas Lihotzki <lukas@lihotzki.de>

‎flight4handler.go

+1
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ func flight4Generate(c flightConn, state *State, cache *handshakeCache, cfg *han
339339
// an appropriate certificate to give to us.
340340
var certificateAuthorities [][]byte
341341
if cfg.clientCAs != nil {
342+
// nolint:staticcheck // ignoring tlsCert.RootCAs.Subjects is deprecated ERR because cert does not come from SystemCertPool and it's ok if certificate authorities is empty.
342343
certificateAuthorities = cfg.clientCAs.Subjects()
343344
}
344345
pkts = append(pkts, &packet{

0 commit comments

Comments
 (0)
Please sign in to comment.