@@ -427,15 +427,15 @@ func (s) TestClientServerHandshake(t *testing.T) {
427
427
return & GetRootCAsResults {TrustCerts : cs .ServerTrust3 }, nil
428
428
}
429
429
430
- makeStaticCRLRevocationOptions := func (crlPath string , allowUndetermined bool ) * RevocationOptions {
430
+ makeStaticCRLRevocationOptions := func (crlPath string , denyUndetermined bool ) * RevocationOptions {
431
431
rawCRL , err := os .ReadFile (crlPath )
432
432
if err != nil {
433
433
t .Fatalf ("readFile(%v) failed err = %v" , crlPath , err )
434
434
}
435
435
cRLProvider := NewStaticCRLProvider ([][]byte {rawCRL })
436
436
return & RevocationOptions {
437
- AllowUndetermined : allowUndetermined ,
438
- CRLProvider : cRLProvider ,
437
+ DenyUndetermined : denyUndetermined ,
438
+ CRLProvider : cRLProvider ,
439
439
}
440
440
}
441
441
@@ -758,18 +758,18 @@ func (s) TestClientServerHandshake(t *testing.T) {
758
758
clientVerifyFunc : clientVerifyFuncGood ,
759
759
clientVerificationType : CertVerification ,
760
760
clientRevocationOptions : & RevocationOptions {
761
- RootDir : testdata .Path ("crl" ),
762
- AllowUndetermined : true ,
763
- Cache : cache ,
761
+ RootDir : testdata .Path ("crl" ),
762
+ DenyUndetermined : false ,
763
+ Cache : cache ,
764
764
},
765
765
serverMutualTLS : true ,
766
766
serverCert : []tls.Certificate {cs .ServerCert1 },
767
767
serverGetRoot : getRootCAsForServer ,
768
768
serverVerificationType : CertVerification ,
769
769
serverRevocationOptions : & RevocationOptions {
770
- RootDir : testdata .Path ("crl" ),
771
- AllowUndetermined : true ,
772
- Cache : cache ,
770
+ RootDir : testdata .Path ("crl" ),
771
+ DenyUndetermined : false ,
772
+ Cache : cache ,
773
773
},
774
774
},
775
775
// Client: set valid credentials with the revocation config
@@ -813,7 +813,7 @@ func (s) TestClientServerHandshake(t *testing.T) {
813
813
clientGetRoot : getRootCAsForClientCRL ,
814
814
clientVerifyFunc : clientVerifyFuncGood ,
815
815
clientVerificationType : CertVerification ,
816
- clientRevocationOptions : makeStaticCRLRevocationOptions (testdata .Path ("crl/provider_malicious_crl_empty.pem" ), false ),
816
+ clientRevocationOptions : makeStaticCRLRevocationOptions (testdata .Path ("crl/provider_malicious_crl_empty.pem" ), true ),
817
817
serverMutualTLS : true ,
818
818
serverCert : []tls.Certificate {cs .ServerCertForCRL },
819
819
serverGetRoot : getRootCAsForServerCRL ,
0 commit comments