From d3078a79aab5e8344d44c2fa8c48cf9561fa95bd Mon Sep 17 00:00:00 2001 From: postmannen Date: Wed, 1 Jun 2022 17:35:23 +0200 Subject: [PATCH] fixed missing pki --- central_auth_acl_handling.go | 3 ++- central_auth_key_handling.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/central_auth_acl_handling.go b/central_auth_acl_handling.go index ee96b06..613f9de 100644 --- a/central_auth_acl_handling.go +++ b/central_auth_acl_handling.go @@ -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 diff --git a/central_auth_key_handling.go b/central_auth_key_handling.go index 4cd58d1..867c98c 100644 --- a/central_auth_key_handling.go +++ b/central_auth_key_handling.go @@ -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()