Commit 90b3a53b authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Add stub for irma_configuration downloading

parent 6784df96
...@@ -266,3 +266,7 @@ func (store *ConfigurationStore) Copy(source string, parse bool) error { ...@@ -266,3 +266,7 @@ func (store *ConfigurationStore) Copy(source string, parse bool) error {
} }
return nil return nil
} }
func (store *ConfigurationStore) Download(set *IrmaIdentifierSet) error {
return nil
}
...@@ -98,6 +98,8 @@ const ( ...@@ -98,6 +98,8 @@ const (
ErrorApi = ErrorType("api") ErrorApi = ErrorType("api")
// Server returned unexpected or malformed response // Server returned unexpected or malformed response
ErrorServerResponse = ErrorType("serverResponse") ErrorServerResponse = ErrorType("serverResponse")
// Error during downloading of credential type, issuer, or public keys
ErrorConfigurationStoreDownload = ErrorType("configurationStoreDownload")
) )
func (e *SessionError) Error() string { func (e *SessionError) Error() string {
......
...@@ -163,6 +163,14 @@ func (session *session) start() { ...@@ -163,6 +163,14 @@ func (session *session) start() {
} }
} }
if err = session.credManager.ConfigurationStore.Download(session.irmaSession.Identifiers()); err != nil {
session.Handler.Failure(
session.Action,
&SessionError{ErrorType: ErrorConfigurationStoreDownload, Err: err},
)
return
}
missing := session.credManager.CheckSatisfiability(session.irmaSession.DisjunctionList()) missing := session.credManager.CheckSatisfiability(session.irmaSession.DisjunctionList())
if len(missing) > 0 { if len(missing) > 0 {
session.Handler.UnsatisfiableRequest(session.Action, missing) session.Handler.UnsatisfiableRequest(session.Action, missing)
......
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