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
b3f694e5
Unverified
Commit
b3f694e5
authored
Nov 07, 2019
by
Tomas
Committed by
GitHub
Nov 07, 2019
Browse files
refactor: Remove androidStoragePath from irmaclient.New (#69)
parent
39dff3e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
irmaclient/client.go
View file @
b3f694e5
...
...
@@ -53,7 +53,6 @@ type Client struct {
Preferences
Preferences
Configuration
*
irma
.
Configuration
irmaConfigurationPath
string
androidStoragePath
string
handler
ClientHandler
}
...
...
@@ -108,8 +107,6 @@ type secretKey struct {
// New creates a new Client that uses the directory
// specified by storagePath for (de)serializing itself. irmaConfigurationPath
// is the path to a (possibly readonly) folder containing irma_configuration;
// androidStoragePath is an optional path to the files of the old android app
// (specify "" if you do not want to parse the old android app files),
// and handler is used for informing the user of new stuff, and when a
// enrollment to a keyshare server needs to happen.
// The client returned by this function has been fully deserialized
...
...
@@ -120,7 +117,6 @@ type secretKey struct {
func
New
(
storagePath
string
,
irmaConfigurationPath
string
,
androidStoragePath
string
,
handler
ClientHandler
,
)
(
*
Client
,
error
)
{
var
err
error
...
...
@@ -136,7 +132,6 @@ func New(
keyshareServers
:
make
(
map
[
irma
.
SchemeManagerIdentifier
]
*
keyshareServer
),
attributes
:
make
(
map
[
irma
.
CredentialTypeIdentifier
][]
*
irma
.
AttributeList
),
irmaConfigurationPath
:
irmaConfigurationPath
,
androidStoragePath
:
androidStoragePath
,
handler
:
handler
,
}
...
...
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