Skip to content

Commit

Permalink
Fix: specify signature algorithm to exercise algorithm selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mschexnaydre committed Oct 17, 2023
1 parent 41370e8 commit 703dc24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ func TestClientCertificate(t *testing.T) {
"RequestClientCert_cert": {
clientCfg: &Config{RootCAs: srvCAPool, Certificates: []tls.Certificate{cert}},
serverCfg: &Config{
SignatureSchemes:[]tls.SignatureScheme{tls.ECDSAWithP521AndSHA512},

Check failure on line 870 in conn_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

File is not `gci`-ed with --skip-generated -s standard,default (gci)
Certificates: []tls.Certificate{srvCert},
ClientAuth: RequestClientCert,
},
Expand Down Expand Up @@ -1352,7 +1353,7 @@ func TestServerCertificate(t *testing.T) {
}},
},
"good_ca_custom_verify_peer": {
clientCfg: &Config{
clientCfg: &Config{

Check failure on line 1356 in conn_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

File is not `gci`-ed with --skip-generated -s standard,default (gci)
RootCAs: caPool,
VerifyPeerCertificate: func([][]byte, [][]*x509.Certificate) error {
return errWrongCert
Expand Down

0 comments on commit 703dc24

Please sign in to comment.