8
main.go
8
main.go
@@ -113,13 +113,13 @@ func main() {
|
|||||||
crl := &x509.RevocationList{}
|
crl := &x509.RevocationList{}
|
||||||
|
|
||||||
loadCrl := func() error {
|
loadCrl := func() error {
|
||||||
crlCandiate, loadCrlError := loadCrlFromFile(config.crlSourceFile.path)
|
curlCandidate, loadCrlError := loadCrlFromFile(config.crlSourceFile.path)
|
||||||
if loadCrlError != nil {
|
if loadCrlError != nil {
|
||||||
return loadCrlError
|
return loadCrlError
|
||||||
}
|
}
|
||||||
metrics.CrlEntries.Set(float64(len(crlCandiate.RevokedCertificateEntries)))
|
metrics.CrlEntries.Set(float64(len(curlCandidate.RevokedCertificateEntries)))
|
||||||
source.UseCrl(*crlCandiate)
|
source.UseCrl(*curlCandidate)
|
||||||
crl = crlCandiate
|
crl = curlCandidate
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user