Skip to content

Commit 978f618

Browse files
committed
fix odf decryption
1 parent 1dd0231 commit 978f618

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/odr/internal/odf/odf_crypto.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ odf::decrypt(const std::shared_ptr<abstract::ReadableFilesystem> &filesystem,
204204
}
205205
return std::make_shared<DecryptedFilesystem>(filesystem, manifest,
206206
start_key);
207+
} catch (const UnsupportedCryptoAlgorithm &) {
208+
throw;
209+
} catch (const WrongPasswordError &) {
210+
throw;
207211
} catch (...) {
208212
throw DecryptionFailed();
209213
}

0 commit comments

Comments
 (0)