Commit 9530deab authored by Sietse Ringers's avatar Sietse Ringers
Browse files

fix: --privatekeys folder in IRMA server stops working after a scheme update

parent 3b46b0ce
...@@ -160,8 +160,10 @@ func (conf *Configuration) clear() { ...@@ -160,8 +160,10 @@ func (conf *Configuration) clear() {
conf.DisabledSchemeManagers = make(map[SchemeManagerIdentifier]*SchemeManagerError) conf.DisabledSchemeManagers = make(map[SchemeManagerIdentifier]*SchemeManagerError)
conf.kssPublicKeys = make(map[SchemeManagerIdentifier]map[int]*rsa.PublicKey) conf.kssPublicKeys = make(map[SchemeManagerIdentifier]map[int]*rsa.PublicKey)
conf.publicKeys = make(map[IssuerIdentifier]map[uint]*gabi.PublicKey) conf.publicKeys = make(map[IssuerIdentifier]map[uint]*gabi.PublicKey)
conf.PrivateKeys = make(map[IssuerIdentifier]map[uint]*gabi.PrivateKey)
conf.reverseHashes = make(map[string]CredentialTypeIdentifier) conf.reverseHashes = make(map[string]CredentialTypeIdentifier)
if conf.PrivateKeys == nil { // keep if already populated
conf.PrivateKeys = make(map[IssuerIdentifier]map[uint]*gabi.PrivateKey)
}
} }
// ParseFolder populates the current Configuration by parsing the storage path, // ParseFolder populates the current Configuration by parsing the storage path,
......
Markdown is supported
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