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
ef7ce6ee
Commit
ef7ce6ee
authored
Oct 02, 2017
by
Sietse Ringers
Browse files
Include credential index in CredentialInfo
parent
90fc81d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
credential.go
View file @
ef7ce6ee
...
...
@@ -19,6 +19,7 @@ type credential struct {
// CredentialInfo contains all information of an IRMA credential.
type
CredentialInfo
struct
{
ID
string
// e.g., "irma-demo.RU.studentCard"
Index
int
// This is the Index-th credential instance of this type
SignedOn
Timestamp
// Unix timestamp
Expires
Timestamp
// Unix timestamp
Type
*
CredentialType
// Credential information from ConfigurationStore
...
...
manager.go
View file @
ef7ce6ee
...
...
@@ -35,7 +35,9 @@ func (cm *CredentialManager) CredentialInfoList() CredentialInfoList {
list
:=
CredentialInfoList
([]
*
CredentialInfo
{})
for
_
,
attrlistlist
:=
range
cm
.
attributes
{
for
_
,
attrlist
:=
range
attrlistlist
{
for
index
,
attrlist
:=
range
attrlistlist
{
info
:=
attrlist
.
Info
()
info
.
Index
=
index
list
=
append
(
list
,
attrlist
.
Info
())
}
}
...
...
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