Commit 255230e1 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Rename MissingKeyshareEnrollment -> KeyshareEnrollmentMissing

parent 99d85920
......@@ -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) MissingKeyshareEnrollment(manager irma.SchemeManagerIdentifier) {
func (sh *ManualSessionHandler) KeyshareEnrollmentMissing(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) {
......
......@@ -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.MissingKeyshareEnrollment(id)
session.Handler.KeyshareEnrollmentMissing(id)
return false
}
}
......
......@@ -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) MissingKeyshareEnrollment(manager irma.SchemeManagerIdentifier) {
func (th TestHandler) KeyshareEnrollmentMissing(manager irma.SchemeManagerIdentifier) {
th.Failure(irma.ActionUnknown, &irma.SessionError{Err: errors.Errorf("Missing keyshare server %s", manager.String())})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment