Skip to content
GitLab
Menu
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
27b0921a
Commit
27b0921a
authored
Dec 29, 2017
by
Sietse Ringers
Browse files
schememgr: improve index error message and allow folder names other than irma_configuration
parent
7d17151b
Changes
2
Hide whitespace changes
Inline
Side-by-side
irmaconfig.go
View file @
27b0921a
...
...
@@ -631,7 +631,7 @@ func (conf *Configuration) parseIndex(name string, manager *SchemeManager) error
func
(
conf
*
Configuration
)
ReadAuthenticatedFile
(
manager
*
SchemeManager
,
path
string
)
([]
byte
,
error
)
{
signedHash
,
ok
:=
manager
.
Index
[
path
]
if
!
ok
{
return
nil
,
errors
.
New
(
"File not present in scheme manager index"
)
return
nil
,
errors
.
Errorf
(
"File
%s
not present in scheme manager index"
,
path
)
}
bts
,
err
:=
ioutil
.
ReadFile
(
filepath
.
Join
(
conf
.
path
,
path
))
...
...
schememgr/cmd/verify.go
View file @
27b0921a
...
...
@@ -6,7 +6,6 @@ import (
"fmt"
"github.com/privacybydesign/irmago"
"github.com/go-errors/errors"
"github.com/spf13/cobra"
)
...
...
@@ -32,7 +31,7 @@ func RunVerify(path string) error {
return
err
}
if
filepath
.
Base
(
path
)
!=
"irma_configuration"
{
return
errors
.
New
(
"Path is not irma_configuration"
)
fmt
.
Printf
(
"Notice: specified folder name is '%s'; when using in IRMA applications it should be called 'irma_configuration'
\n
"
,
filepath
.
Base
(
path
)
)
}
conf
,
err
:=
irma
.
NewConfiguration
(
path
,
""
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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