Commit 1cb8de5d authored by Sietse Ringers's avatar Sietse Ringers
Browse files

More renaming

parent 255230e1
......@@ -25,7 +25,7 @@ type keyshareSessionHandler interface {
KeyshareDone(message interface{})
KeyshareCancelled()
KeyshareBlocked(manager irma.SchemeManagerIdentifier, duration int)
KeyshareRegistrationIncomplete(manager irma.SchemeManagerIdentifier)
KeyshareEnrollmentIncomplete(manager irma.SchemeManagerIdentifier)
// In errors the manager may be nil, as not all keyshare errors have a clearly associated scheme manager
KeyshareError(manager *irma.SchemeManagerIdentifier, err error)
KeysharePin()
......@@ -221,7 +221,7 @@ func (ks *keyshareSession) fail(manager irma.SchemeManagerIdentifier, err error)
if serr.ApiError != nil && len(serr.ApiError.ErrorName) > 0 {
switch serr.ApiError.ErrorName {
case "USER_NOT_REGISTERED":
ks.sessionHandler.KeyshareRegistrationIncomplete(manager)
ks.sessionHandler.KeyshareEnrollmentIncomplete(manager)
case "USER_BLOCKED":
duration, err := strconv.Atoi(serr.ApiError.Message)
if err != nil { // Not really clear what to do with duration, but should never happen anyway
......
......@@ -409,7 +409,7 @@ func (session *session) KeyshareCancelled() {
session.cancel()
}
func (session *session) KeyshareRegistrationIncomplete(manager irma.SchemeManagerIdentifier) {
func (session *session) KeyshareEnrollmentIncomplete(manager irma.SchemeManagerIdentifier) {
session.Handler.KeyshareEnrollmentIncomplete(manager)
}
......
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