mirror of
https://github.com/status-im/sqlcipher.git
synced 2026-08-31 06:21:07 +00:00
disable memory security feature by default; once it is turned on it can't be turned off
This commit is contained in:
@@ -730,20 +730,20 @@ db close
|
||||
file delete -force test.db
|
||||
|
||||
# verify memory security behavior
|
||||
# initially should report ON
|
||||
# then disable, check that it is off
|
||||
# turn it back on, then check.
|
||||
# initially should report OFF
|
||||
# then enable, check that it is ON
|
||||
# try to turn if off, but verify that it
|
||||
# can't be unset.
|
||||
do_test verify-memory-security {
|
||||
sqlite_orig db test.db
|
||||
execsql {
|
||||
PRAGMA cipher_memory_security;
|
||||
PRAGMA cipher_memory_security = OFF;
|
||||
PRAGMA cipher_memory_security;
|
||||
PRAGMA cipher_memory_security = ON;
|
||||
PRAGMA cipher_memory_security;
|
||||
|
||||
PRAGMA cipher_memory_security = OFF;
|
||||
PRAGMA cipher_memory_security;
|
||||
}
|
||||
} {1 0 1}
|
||||
} {0 1 1}
|
||||
db close
|
||||
file delete -force test.db
|
||||
|
||||
|
||||
Reference in New Issue
Block a user