This commit is contained in:
multi prise
2025-08-11 19:50:08 +02:00
committed by Damir Jelić
parent 6099928b40
commit c51536a054
+8 -4
View File
@@ -471,10 +471,14 @@ pub(crate) trait SqliteKeyValueStoreAsyncConnExt: SqliteAsyncConnExt {
let cipher = StoreCipher::new()?;
let export = match secret {
Secret::PassPhrase(ref passphrase) => {
#[cfg(not(test))]
{cipher.export(passphrase)}
#[cfg(test)]
{cipher._insecure_export_fast_for_testing(passphrase)}
#[cfg(not(test))]
{
cipher.export(passphrase)
}
#[cfg(test)]
{
cipher._insecure_export_fast_for_testing(passphrase)
}
}
Secret::Key(key) => cipher.export_with_key(&key),
};