feat(sqlite): restore rc4 legacy support via optional feature
This commit is contained in:
22 files changed
+232
-57
No files matched your search
@@ -380,7 +380,7 @@ mod tests {
|
||||
Ok(_) => panic!("SQLCipher attachments must be rejected"),
|
||||
Err(error) => error,
|
||||
};
|
||||
assert!(error.contains("SQLCipher"), "{error}");
|
||||
assert!(error.contains("encrypted connections"), "{error}");
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@@ -566,7 +566,7 @@ mod tests {
|
||||
let _ = std::fs::remove_dir_all(dir);
|
||||
}
|
||||
|
||||
#[cfg(feature = "sqlite-sqlcipher")]
|
||||
#[cfg(any(feature = "sqlite-sqlcipher", feature = "sqlite-multiple-ciphers"))]
|
||||
#[tokio::test]
|
||||
async fn sqlite_connect_from_config_uses_sqlcipher_key() {
|
||||
let path = std::env::temp_dir().join(format!("dbx-tauri-sqlcipher-{}.db", uuid::Uuid::new_v4()));
|
||||
@@ -600,7 +600,7 @@ mod tests {
|
||||
Ok(_) => panic!("wrong SQLCipher key must fail"),
|
||||
Err(err) => err,
|
||||
};
|
||||
assert!(wrong_key.contains("SQLCipher database unlock failed"));
|
||||
assert!(wrong_key.contains("Encrypted SQLite database unlock failed"));
|
||||
|
||||
let missing_key = match connect_sqlite_from_config(&sqlite_config(&path, "")).await {
|
||||
Ok(_) => panic!("missing SQLCipher key must fail"),
|
||||
|
||||
Reference in new issue
Block a user