vendor: update t3rm1n4l/go-mega - fixes mega: couldn't login: crypto/aes: invalid key size 0

Fixes #3740
This commit is contained in:
Nick Craig-Wood
2020-01-17 21:42:32 +00:00
parent 251cfc100e
commit 36157d8ae5
4 changed files with 10 additions and 6 deletions
+6 -2
View File
@@ -759,7 +759,10 @@ func (m *Mega) addFSNode(itm FSNode) (*Node, error) {
}
// Shared file
default:
k := m.FS.skmap[itemUser]
k, ok := m.FS.skmap[itemUser]
if !ok {
return nil, errors.New("couldn't find decryption key for shared file")
}
b, err := base64urldecode(k)
if err != nil {
return nil, err
@@ -930,7 +933,8 @@ func (m *Mega) getFileSystem() error {
for _, itm := range res[0].F {
_, err = m.addFSNode(itm)
if err != nil {
return err
m.debugf("couldn't decode FSNode %#v: %v ", itm, err)
continue
}
}
+1 -1
View File
@@ -166,7 +166,7 @@ github.com/spf13/pflag
# github.com/stretchr/testify v1.4.0
github.com/stretchr/testify/assert
github.com/stretchr/testify/require
# github.com/t3rm1n4l/go-mega v0.0.0-20200111163430-ad0abe77ec81
# github.com/t3rm1n4l/go-mega v0.0.0-20200117211730-79a813bb328d
github.com/t3rm1n4l/go-mega
# github.com/xanzy/ssh-agent v0.2.1
github.com/xanzy/ssh-agent