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
972e2150
Commit
972e2150
authored
Jun 30, 2019
by
Sietse Ringers
Browse files
fix: do not accept empty disclosure proofs in signatures; only in disclosures
parent
74788fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
verify.go
View file @
972e2150
...
...
@@ -303,6 +303,10 @@ func (d *Disclosure) Verify(configuration *Configuration, request *DisclosureReq
func
(
sm
*
SignedMessage
)
Verify
(
configuration
*
Configuration
,
request
*
SignatureRequest
)
([][]
*
DisclosedAttribute
,
ProofStatus
,
error
)
{
var
message
string
if
len
(
sm
.
Signature
)
==
0
{
return
nil
,
ProofStatusInvalid
,
nil
}
// First check if this signature matches the request
if
request
!=
nil
{
if
!
sm
.
MatchesNonceAndContext
(
request
)
{
...
...
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