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
255230e1
Commit
255230e1
authored
Feb 11, 2018
by
Sietse Ringers
Browse files
Rename MissingKeyshareEnrollment -> KeyshareEnrollmentMissing
parent
99d85920
Changes
3
Hide whitespace changes
Inline
Side-by-side
irmaclient/manual_session_test.go
View file @
255230e1
...
...
@@ -72,7 +72,7 @@ func (sh *ManualSessionHandler) RequestSignaturePermission(request irma.Signatur
func
(
sh
*
ManualSessionHandler
)
Cancelled
(
irmaAction
irma
.
Action
)
{
sh
.
Failure
(
irma
.
ActionUnknown
,
&
irma
.
SessionError
{
Err
:
errors
.
New
(
"Session was cancelled"
)})
}
func
(
sh
*
ManualSessionHandler
)
Missing
KeyshareEnrollment
(
manager
irma
.
SchemeManagerIdentifier
)
{
func
(
sh
*
ManualSessionHandler
)
KeyshareEnrollment
Missing
(
manager
irma
.
SchemeManagerIdentifier
)
{
sh
.
Failure
(
irma
.
ActionUnknown
,
&
irma
.
SessionError
{
Err
:
errors
.
Errorf
(
"Missing keyshare server %s"
,
manager
.
String
())})
}
func
(
sh
*
ManualSessionHandler
)
RequestIssuancePermission
(
request
irma
.
IssuanceRequest
,
issuerName
string
,
ph
PermissionHandler
)
{
...
...
irmaclient/session.go
View file @
255230e1
...
...
@@ -32,9 +32,9 @@ type Handler interface {
Failure
(
action
irma
.
Action
,
err
*
irma
.
SessionError
)
UnsatisfiableRequest
(
action
irma
.
Action
,
ServerName
string
,
missing
irma
.
AttributeDisjunctionList
)
MissingKeyshareEnrollment
(
manager
irma
.
SchemeManagerIdentifier
)
KeyshareBlocked
(
manager
irma
.
SchemeManagerIdentifier
,
duration
int
)
KeyshareEnrollmentIncomplete
(
manager
irma
.
SchemeManagerIdentifier
)
KeyshareEnrollmentMissing
(
manager
irma
.
SchemeManagerIdentifier
)
RequestIssuancePermission
(
request
irma
.
IssuanceRequest
,
ServerName
string
,
callback
PermissionHandler
)
RequestVerificationPermission
(
request
irma
.
DisclosureRequest
,
ServerName
string
,
callback
PermissionHandler
)
...
...
@@ -158,7 +158,7 @@ func (session *session) checkKeyshareEnrollment() bool {
distributed
:=
manager
.
Distributed
()
_
,
enrolled
:=
session
.
client
.
keyshareServers
[
id
]
if
distributed
&&
!
enrolled
{
session
.
Handler
.
Missing
KeyshareEnrollment
(
id
)
session
.
Handler
.
KeyshareEnrollment
Missing
(
id
)
return
false
}
}
...
...
irmaclient/session_test.go
View file @
255230e1
...
...
@@ -28,7 +28,7 @@ func (th TestHandler) KeyshareBlocked(manager irma.SchemeManagerIdentifier, dura
th
.
Failure
(
irma
.
ActionUnknown
,
&
irma
.
SessionError
{
Err
:
errors
.
New
(
"KeyshareBlocked"
)})
}
func
(
th
TestHandler
)
Missing
KeyshareEnrollment
(
manager
irma
.
SchemeManagerIdentifier
)
{
func
(
th
TestHandler
)
KeyshareEnrollment
Missing
(
manager
irma
.
SchemeManagerIdentifier
)
{
th
.
Failure
(
irma
.
ActionUnknown
,
&
irma
.
SessionError
{
Err
:
errors
.
Errorf
(
"Missing keyshare server %s"
,
manager
.
String
())})
}
...
...
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