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
89082567
Commit
89082567
authored
Sep 27, 2017
by
Tomas
Browse files
StartKeyshareRegistration -> StartRegistration
parent
dfbec92d
Changes
3
Hide whitespace changes
Inline
Side-by-side
irmago_test.go
View file @
89082567
...
...
@@ -27,7 +27,7 @@ func TestMain(m *testing.M) {
type
IgnoringKeyshareHandler
struct
{}
func
(
i
*
IgnoringKeyshareHandler
)
Start
Keyshare
Registration
(
m
*
SchemeManager
,
callback
func
(
e
,
p
string
))
{
func
(
i
*
IgnoringKeyshareHandler
)
StartRegistration
(
m
*
SchemeManager
,
callback
func
(
e
,
p
string
))
{
}
func
parseMetaStore
(
t
*
testing
.
T
)
{
...
...
keyshare.go
View file @
89082567
...
...
@@ -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
{
Start
Keyshare
Registration
(
manager
*
SchemeManager
,
registrationCallback
func
(
email
,
pin
string
))
StartRegistration
(
manager
*
SchemeManager
,
registrationCallback
func
(
email
,
pin
string
))
}
const
(
...
...
storage.go
View file @
89082567
...
...
@@ -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
.
Start
Keyshare
Registration
(
unenrolled
[
0
],
func
(
email
,
pin
string
)
{
keyshareHandler
.
StartRegistration
(
unenrolled
[
0
],
func
(
email
,
pin
string
)
{
cm
.
KeyshareEnroll
(
unenrolled
[
0
]
.
Identifier
(),
email
,
pin
)
})
default
:
...
...
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