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
99d85920
Commit
99d85920
authored
Feb 11, 2018
by
Sietse Ringers
Browse files
Rename KeyshareRegistrationIncomplete -> KeyshareEnrollmentIncomplete
parent
6c565cad
Changes
3
Show whitespace changes
Inline
Side-by-side
irmaclient/manual_session_test.go
View file @
99d85920
...
...
@@ -96,6 +96,6 @@ func (sh *ManualSessionHandler) Failure(irmaAction irma.Action, err *irma.Sessio
func
(
sh
*
ManualSessionHandler
)
KeyshareBlocked
(
manager
irma
.
SchemeManagerIdentifier
,
duration
int
)
{
sh
.
Failure
(
irma
.
ActionUnknown
,
&
irma
.
SessionError
{
Err
:
errors
.
New
(
"KeyshareBlocked"
)})
}
func
(
sh
*
ManualSessionHandler
)
Keyshare
Registration
Incomplete
(
manager
irma
.
SchemeManagerIdentifier
)
{
sh
.
Failure
(
irma
.
ActionUnknown
,
&
irma
.
SessionError
{
Err
:
errors
.
New
(
"Keyshare
Registration
Incomplete"
)})
func
(
sh
*
ManualSessionHandler
)
Keyshare
Enrollment
Incomplete
(
manager
irma
.
SchemeManagerIdentifier
)
{
sh
.
Failure
(
irma
.
ActionUnknown
,
&
irma
.
SessionError
{
Err
:
errors
.
New
(
"Keyshare
Enrollment
Incomplete"
)})
}
irmaclient/session.go
View file @
99d85920
...
...
@@ -34,7 +34,7 @@ type Handler interface {
MissingKeyshareEnrollment
(
manager
irma
.
SchemeManagerIdentifier
)
KeyshareBlocked
(
manager
irma
.
SchemeManagerIdentifier
,
duration
int
)
Keyshare
Registration
Incomplete
(
manager
irma
.
SchemeManagerIdentifier
)
Keyshare
Enrollment
Incomplete
(
manager
irma
.
SchemeManagerIdentifier
)
RequestIssuancePermission
(
request
irma
.
IssuanceRequest
,
ServerName
string
,
callback
PermissionHandler
)
RequestVerificationPermission
(
request
irma
.
DisclosureRequest
,
ServerName
string
,
callback
PermissionHandler
)
...
...
@@ -410,7 +410,7 @@ func (session *session) KeyshareCancelled() {
}
func
(
session
*
session
)
KeyshareRegistrationIncomplete
(
manager
irma
.
SchemeManagerIdentifier
)
{
session
.
Handler
.
Keyshare
Registration
Incomplete
(
manager
)
session
.
Handler
.
Keyshare
Enrollment
Incomplete
(
manager
)
}
func
(
session
*
session
)
KeyshareBlocked
(
manager
irma
.
SchemeManagerIdentifier
,
duration
int
)
{
...
...
irmaclient/session_test.go
View file @
99d85920
...
...
@@ -20,8 +20,8 @@ type TestHandler struct {
client
*
Client
}
func
(
th
TestHandler
)
Keyshare
Registration
Incomplete
(
manager
irma
.
SchemeManagerIdentifier
)
{
th
.
Failure
(
irma
.
ActionUnknown
,
&
irma
.
SessionError
{
Err
:
errors
.
New
(
"Keyshare
Registration
Incomplete"
)})
func
(
th
TestHandler
)
Keyshare
Enrollment
Incomplete
(
manager
irma
.
SchemeManagerIdentifier
)
{
th
.
Failure
(
irma
.
ActionUnknown
,
&
irma
.
SessionError
{
Err
:
errors
.
New
(
"Keyshare
Enrollment
Incomplete"
)})
}
func
(
th
TestHandler
)
KeyshareBlocked
(
manager
irma
.
SchemeManagerIdentifier
,
duration
int
)
{
...
...
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