@@ -427,15 +427,15 @@ func (s) TestClientServerHandshake(t *testing.T) {
427427 return & GetRootCAsResults {TrustCerts : cs .ServerTrust3 }, nil
428428 }
429429
430- makeStaticCRLRevocationOptions := func (crlPath string , allowUndetermined bool ) * RevocationOptions {
430+ makeStaticCRLRevocationOptions := func (crlPath string , denyUndetermined bool ) * RevocationOptions {
431431 rawCRL , err := os .ReadFile (crlPath )
432432 if err != nil {
433433 t .Fatalf ("readFile(%v) failed err = %v" , crlPath , err )
434434 }
435435 cRLProvider := NewStaticCRLProvider ([][]byte {rawCRL })
436436 return & RevocationOptions {
437- AllowUndetermined : allowUndetermined ,
438- CRLProvider : cRLProvider ,
437+ DenyUndetermined : denyUndetermined ,
438+ CRLProvider : cRLProvider ,
439439 }
440440 }
441441
@@ -758,18 +758,18 @@ func (s) TestClientServerHandshake(t *testing.T) {
758758 clientVerifyFunc : clientVerifyFuncGood ,
759759 clientVerificationType : CertVerification ,
760760 clientRevocationOptions : & RevocationOptions {
761- RootDir : testdata .Path ("crl" ),
762- AllowUndetermined : true ,
763- Cache : cache ,
761+ RootDir : testdata .Path ("crl" ),
762+ DenyUndetermined : false ,
763+ Cache : cache ,
764764 },
765765 serverMutualTLS : true ,
766766 serverCert : []tls.Certificate {cs .ServerCert1 },
767767 serverGetRoot : getRootCAsForServer ,
768768 serverVerificationType : CertVerification ,
769769 serverRevocationOptions : & RevocationOptions {
770- RootDir : testdata .Path ("crl" ),
771- AllowUndetermined : true ,
772- Cache : cache ,
770+ RootDir : testdata .Path ("crl" ),
771+ DenyUndetermined : false ,
772+ Cache : cache ,
773773 },
774774 },
775775 // Client: set valid credentials with the revocation config
@@ -813,7 +813,7 @@ func (s) TestClientServerHandshake(t *testing.T) {
813813 clientGetRoot : getRootCAsForClientCRL ,
814814 clientVerifyFunc : clientVerifyFuncGood ,
815815 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 ),
817817 serverMutualTLS : true ,
818818 serverCert : []tls.Certificate {cs .ServerCertForCRL },
819819 serverGetRoot : getRootCAsForServerCRL ,
0 commit comments