Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
b05ec5cd
Commit
b05ec5cd
authored
Apr 18, 2018
by
Sietse Ringers
Browse files
Add update for deleting faulty test scheme manager
parent
6ae56f89
Changes
2
Hide whitespace changes
Inline
Side-by-side
irmaclient/updates.go
View file @
b05ec5cd
...
...
@@ -70,6 +70,10 @@ var clientUpdates = []func(client *Client) error{
}
return
client
.
storage
.
StoreKeyshareServers
(
keyshareServers
)
},
func
(
client
*
Client
)
(
err
error
)
{
return
client
.
Configuration
.
DeleteSchemeManager
(
irma
.
NewSchemeManagerIdentifier
(
"test"
))
},
}
// update performs any function from clientUpdates that has not
...
...
irmaconfig.go
View file @
b05ec5cd
...
...
@@ -283,6 +283,12 @@ func (conf *Configuration) parseIssuerFolders(manager *SchemeManager, path strin
})
}
func
(
conf
*
Configuration
)
DeleteSchemeManager
(
id
SchemeManagerIdentifier
)
error
{
delete
(
conf
.
SchemeManagers
,
id
)
delete
(
conf
.
DisabledSchemeManagers
,
id
)
return
os
.
RemoveAll
(
filepath
.
Join
(
conf
.
Path
,
id
.
Name
()))
}
// parse $schememanager/$issuer/PublicKeys/$i.xml for $i = 1, ...
func
(
conf
*
Configuration
)
parseKeysFolder
(
manager
*
SchemeManager
,
issuerid
IssuerIdentifier
)
error
{
path
:=
fmt
.
Sprintf
(
"%s/%s/%s/PublicKeys/*.xml"
,
conf
.
Path
,
issuerid
.
SchemeManagerIdentifier
()
.
Name
(),
issuerid
.
Name
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment