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
5b99f4b7
Commit
5b99f4b7
authored
Sep 29, 2017
by
Sietse Ringers
Browse files
Small fix
parent
3f4d0426
Changes
1
Show whitespace changes
Inline
Side-by-side
store.go
View file @
5b99f4b7
...
...
@@ -40,7 +40,7 @@ func newConfigurationStore() (store *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
{
if
list
,
ok
:=
MetaS
tore
.
PublicKeys
[
id
];
ok
{
if
list
,
ok
:=
s
tore
.
PublicKeys
[
id
];
ok
{
if
len
(
list
)
>
counter
{
return
list
[
counter
]
}
...
...
@@ -75,7 +75,7 @@ func (store *ConfigurationStore) ParseFolder(path string) error {
return
err
}
if
exists
{
MetaS
tore
.
SchemeManagers
[
manager
.
Identifier
()]
=
manager
s
tore
.
SchemeManagers
[
manager
.
Identifier
()]
=
manager
return
store
.
parseIssuerFolders
(
dir
)
}
return
nil
...
...
@@ -116,7 +116,7 @@ func (store *ConfigurationStore) parseKeysFolder(issuer *Issuer, path string) er
return
err
}
pk
.
Issuer
=
issuer
.
Identifier
()
.
String
()
MetaS
tore
.
PublicKeys
[
issuer
.
Identifier
()]
=
append
(
MetaS
tore
.
PublicKeys
[
issuer
.
Identifier
()],
pk
)
s
tore
.
PublicKeys
[
issuer
.
Identifier
()]
=
append
(
s
tore
.
PublicKeys
[
issuer
.
Identifier
()],
pk
)
}
return
nil
}
...
...
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