Commit 4533c964 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Verify scheme manager signature in VerifySchemeManager

parent 26f224ff
......@@ -641,6 +641,14 @@ func (conf *Configuration) parseIndex(name string, manager *SchemeManager) error
func (conf *Configuration) VerifySchemeManager(manager *SchemeManager) error {
valid, err := conf.VerifySignature(manager.Identifier())
if err != nil {
return err
if !valid {
return errors.New("Scheme manager signature was invalid")
for file := range manager.index {
exists, err := fs.PathExists(filepath.Join(conf.path, file))
if err != nil {
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