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
e73342b5
Commit
e73342b5
authored
Jul 14, 2018
by
Sietse Ringers
Browse files
Merge branch 'warnremoval'
parents
ffde346b
8f3aac87
Changes
2
Hide whitespace changes
Inline
Side-by-side
irmaclient/session.go
View file @
e73342b5
...
...
@@ -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 @
e73342b5
...
...
@@ -68,9 +68,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
}
// 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