Merge branch 'sessionkey-error-handling' into 'master'
Fix error handling in GetSessionFromKeyPacket* See merge request ProtonMail/go-pm-crypto!7
This commit is contained in:
commit
96eb15dc68
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ func (pm *PmCrypto) GetSessionFromKeyPacketBinkeys(keyPackage []byte, privateKey
|
|||
}
|
||||
|
||||
if decryptErr != nil {
|
||||
return nil, err
|
||||
return nil, decryptErr
|
||||
}
|
||||
|
||||
return getSessionSplit(ek)
|
||||
|
|
@ -110,7 +110,7 @@ func (pm *PmCrypto) GetSessionFromKeyPacket(keyPackage []byte, privateKey string
|
|||
}
|
||||
|
||||
if decryptErr != nil {
|
||||
return nil, err
|
||||
return nil, decryptErr
|
||||
}
|
||||
|
||||
return getSessionSplit(ek)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue