Skip to content

Commit 06c6aa6

Browse files
committed
Rename param CLR to CRL
1 parent df3ee1d commit 06c6aa6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func main() {
4141
Key: "key.pem",
4242
Cert: "cert.pem",
4343
ClientCAs: "",
44-
ClientCLR: "",
44+
ClientCRL: "",
4545
},
4646
})
4747
if err != nil {

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type TLSServerFiles struct {
1414
Key string `placeholder:"FILE" help:"Path to the server TLS key file."`
1515
Cert string `placeholder:"FILE" help:"Path to the server TLS certificate file."`
1616
ClientCAs string `placeholder:"FILE" name:"client-ca" help:"Optional path to server client CA file for client verification."`
17-
ClientCLR string `placeholder:"FILE" name:"client-clr" help:"TLS X509 CLR signed be the client CA. If no revocation list is specified, only client CA is verified."`
17+
ClientCRL string `placeholder:"FILE" name:"client-crl" help:"TLS X509 CRL signed be the client CA. If no revocation list is specified, only client CA is verified."`
1818
}
1919

2020
type TLSClientConfig struct {

tls/server/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func GetServerTLSConfig(logger *slog.Logger, conf *config.TLSServerConfig, opts
1515
filesource.WithLogger(logger),
1616
filesource.WithX509KeyPair(conf.File.Cert, conf.File.Key),
1717
filesource.WithClientAuthFile(conf.File.ClientCAs),
18-
filesource.WithClientCRLFile(conf.File.ClientCLR),
18+
filesource.WithClientCRLFile(conf.File.ClientCRL),
1919
filesource.WithRefresh(conf.Refresh),
2020
)
2121
if err != nil {

tls/server/config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestGetServerTLSConfig(t *testing.T) {
2222
Key: bundle.ServerKey.Name(),
2323
Cert: bundle.ServerCert.Name(),
2424
ClientCAs: bundle.CACert.Name(),
25-
ClientCLR: bundle.ClientCRL.Name(),
25+
ClientCRL: bundle.ClientCRL.Name(),
2626
},
2727
}, tlsserver.WithTLSServerNextProtos([]string{"h2"}))
2828
require.NoError(t, err)

tls/server/source/pems.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (s ServerPEMs) ValidateCRLs() error {
7979
}
8080
}
8181
if !ok {
82-
return errors.New("server PEMs: CLR validation failure")
82+
return errors.New("server PEMs: CRL validation failure")
8383
}
8484
}
8585
return nil

0 commit comments

Comments
 (0)