1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

fixed missing pki

This commit is contained in:
postmannen 2022-06-01 17:35:23 +02:00
parent d6552f686c
commit d3078a79aa
2 changed files with 3 additions and 2 deletions

View file

@ -43,13 +43,14 @@ type accessLists struct {
pki *pki
}
func newAccessLists(errorKernel *errorKernel, configuration *Configuration) *accessLists {
func newAccessLists(pki *pki, errorKernel *errorKernel, configuration *Configuration) *accessLists {
a := accessLists{
schemaMain: newSchemaMain(configuration),
schemaGenerated: newSchemaGenerated(),
validator: validator.New(),
errorKernel: errorKernel,
configuration: configuration,
pki: pki,
}
return &a

View file

@ -26,7 +26,7 @@ type centralAuth struct {
func newCentralAuth(configuration *Configuration, errorKernel *errorKernel) *centralAuth {
c := centralAuth{}
c.pki = newPKI(configuration, errorKernel)
c.accessLists = newAccessLists(errorKernel, configuration)
c.accessLists = newAccessLists(c.pki, errorKernel, configuration)
c.generateACLsForAllNodes()