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
8f3aac87
Commit
8f3aac87
authored
Jun 21, 2018
by
David Venhoek
Browse files
Generate a list of credentials that will be removed on accepting issuance requests.
parent
4d97255d
Changes
2
Hide whitespace changes
Inline
Side-by-side
irmaclient/session.go
View file @
8f3aac87
...
...
@@ -349,6 +349,10 @@ func (session *session) start() {
return
}
ir
.
CredentialInfoList
=
append
(
ir
.
CredentialInfoList
,
info
)
preexistingCredentials
:=
session
.
client
.
attrs
(
*
credreq
.
CredentialTypeID
)
if
len
(
preexistingCredentials
)
!=
0
&&
preexistingCredentials
[
0
]
.
IsValid
()
&&
preexistingCredentials
[
0
]
.
CredentialType
()
.
IsSingleton
{
ir
.
RemovalCredentialInfoList
=
append
(
ir
.
RemovalCredentialInfoList
,
preexistingCredentials
[
0
]
.
Info
())
}
}
}
...
...
requests.go
View file @
8f3aac87
...
...
@@ -66,9 +66,10 @@ type SignatureRequest struct {
// optionally also asking for certain attributes to be simultaneously disclosed.
type
IssuanceRequest
struct
{
SessionRequest
Credentials
[]
*
CredentialRequest
`json:"credentials"`
Disclose
AttributeDisjunctionList
`json:"disclose"`
CredentialInfoList
CredentialInfoList
`json:",omitempty"`
Credentials
[]
*
CredentialRequest
`json:"credentials"`
Disclose
AttributeDisjunctionList
`json:"disclose"`
CredentialInfoList
CredentialInfoList
`json:",omitempty"`
RemovalCredentialInfoList
CredentialInfoList
`json:",omitempty"`
}
// A CredentialRequest contains the attributes and metadata of a credential
...
...
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