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
4533c964
Commit
4533c964
authored
Feb 06, 2018
by
Sietse Ringers
Browse files
Verify scheme manager signature in VerifySchemeManager
parent
26f224ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
irmaconfig.go
View file @
4533c964
...
...
@@ -641,6 +641,14 @@ func (conf *Configuration) parseIndex(name string, manager *SchemeManager) error
}
func
(
conf
*
Configuration
)
VerifySchemeManager
(
manager
*
SchemeManager
)
error
{
valid
,
err
:=
conf
.
VerifySignature
(
manager
.
Identifier
())
if
err
!=
nil
{
return
err
}
if
!
valid
{
return
errors
.
New
(
"Scheme manager signature was invalid"
)
}
for
file
:=
range
manager
.
index
{
exists
,
err
:=
fs
.
PathExists
(
filepath
.
Join
(
conf
.
path
,
file
))
if
err
!=
nil
{
...
...
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