Commit 5b99f4b7 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Small fix

parent 3f4d0426
...@@ -40,7 +40,7 @@ func newConfigurationStore() (store *ConfigurationStore) { ...@@ -40,7 +40,7 @@ func newConfigurationStore() (store *ConfigurationStore) {
// PublicKey returns the specified public key, or nil if not present in the ConfigurationStore. // PublicKey returns the specified public key, or nil if not present in the ConfigurationStore.
func (store *ConfigurationStore) PublicKey(id IssuerIdentifier, counter int) *gabi.PublicKey { func (store *ConfigurationStore) PublicKey(id IssuerIdentifier, counter int) *gabi.PublicKey {
if list, ok := MetaStore.PublicKeys[id]; ok { if list, ok := store.PublicKeys[id]; ok {
if len(list) > counter { if len(list) > counter {
return list[counter] return list[counter]
} }
...@@ -75,7 +75,7 @@ func (store *ConfigurationStore) ParseFolder(path string) error { ...@@ -75,7 +75,7 @@ func (store *ConfigurationStore) ParseFolder(path string) error {
return err return err
} }
if exists { if exists {
MetaStore.SchemeManagers[manager.Identifier()] = manager store.SchemeManagers[manager.Identifier()] = manager
return store.parseIssuerFolders(dir) return store.parseIssuerFolders(dir)
} }
return nil return nil
...@@ -116,7 +116,7 @@ func (store *ConfigurationStore) parseKeysFolder(issuer *Issuer, path string) er ...@@ -116,7 +116,7 @@ func (store *ConfigurationStore) parseKeysFolder(issuer *Issuer, path string) er
return err return err
} }
pk.Issuer = issuer.Identifier().String() pk.Issuer = issuer.Identifier().String()
MetaStore.PublicKeys[issuer.Identifier()] = append(MetaStore.PublicKeys[issuer.Identifier()], pk) store.PublicKeys[issuer.Identifier()] = append(store.PublicKeys[issuer.Identifier()], pk)
} }
return nil return nil
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment