mirror of
https://github.com/status-im/sqlcipher.git
synced 2025-02-22 16:58:14 +00:00
complete 424d75a5a4ec4cea4e814c5f9b3d20cd799985af
This commit is contained in:
parent
1a7cc84fa1
commit
6936ef0d11
@ -165,7 +165,8 @@ sqlite3_backup *sqlite3_backup_init(
|
||||
sqlite3CodecGetKey(pDestDb, sqlcipher_find_db_index(pDestDb, zDestDb), &zKey, &destNKey);
|
||||
zKey = NULL;
|
||||
|
||||
if(srcNKey || destNKey) {
|
||||
/* either both databases must be plaintext, or both must be encrypted */
|
||||
if((srcNKey == 0 && destNKey > 0) || (srcNKey > 0 && destNKey == 0)) {
|
||||
sqlite3ErrorWithMsg(pDestDb, SQLITE_ERROR, "backup is not supported with encrypted databases");
|
||||
return NULL;
|
||||
}
|
||||
|
@ -48,5 +48,6 @@ slave_test_file $testdir/sqlcipher-rekey.test
|
||||
slave_test_file $testdir/sqlcipher-plaintext-header.test
|
||||
slave_test_file $testdir/sqlcipher-pragmas.test
|
||||
slave_test_file $testdir/sqlcipher-integrity.test
|
||||
slave_test_file $testdir/sqlcipher-backup.test
|
||||
|
||||
finish_test
|
||||
|
Loading…
x
Reference in New Issue
Block a user