Commit 89082567 authored by Tomas's avatar Tomas
Browse files

StartKeyshareRegistration -> StartRegistration

parent dfbec92d
......@@ -27,7 +27,7 @@ func TestMain(m *testing.M) {
type IgnoringKeyshareHandler struct{}
func (i *IgnoringKeyshareHandler) StartKeyshareRegistration(m *SchemeManager, callback func(e, p string)) {
func (i *IgnoringKeyshareHandler) StartRegistration(m *SchemeManager, callback func(e, p string)) {
}
func parseMetaStore(t *testing.T) {
......
......@@ -87,7 +87,7 @@ type proofPCommitmentMap struct {
// KeyshareHandler is used for asking the user for his email address and PIN,
// for registering at a keyshare server.
type KeyshareHandler interface {
StartKeyshareRegistration(manager *SchemeManager, registrationCallback func(email, pin string))
StartRegistration(manager *SchemeManager, registrationCallback func(email, pin string))
}
const (
......
......@@ -73,7 +73,7 @@ func (cm *CredentialManager) Init(path string, keyshareHandler KeyshareHandler)
if keyshareHandler == nil {
return errors.New("Keyshare server found but no KeyshareHandler was given")
}
keyshareHandler.StartKeyshareRegistration(unenrolled[0], func(email, pin string) {
keyshareHandler.StartRegistration(unenrolled[0], func(email, pin string) {
cm.KeyshareEnroll(unenrolled[0].Identifier(), email, pin)
})
default:
......
Supports Markdown
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