disable memory security feature by default; once it is turned on it can't be turned off

This commit is contained in:
Stephen Lombardo
2021-09-08 10:26:36 -04:00
parent 7b54c31180
commit 07ca482e4e
2 changed files with 13 additions and 10 deletions
+7 -7
View File
@@ -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