Skip to content

Commit cc0e8be

Browse files
committed
explicit test for opening 2.0 format db with hmac
1 parent bfff385 commit cc0e8be

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

sqlcipher-2.0-testkey.db

2 KB
Binary file not shown.

test/crypto.test

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,4 +1556,15 @@ do_test multipage-schema-autovacuum-shortread-wal {
15561556
db close
15571557
file delete -force test.db
15581558

1559+
# open a 2.0 database verify it can be opened
1560+
do_test open-2.0-database {
1561+
sqlite_orig db sqlcipher-2.0-testkey.db
1562+
execsql {
1563+
PRAGMA key = 'testkey';
1564+
SELECT count(*) FROM t1;
1565+
SELECT * FROM t1;
1566+
}
1567+
} {4 1 1 one one 1 2 one two}
1568+
db close
1569+
15591570
finish_test

0 commit comments

Comments
 (0)