Add test for commoncrypto default cipher

This commit is contained in:
Nick Parker 2013-06-06 13:49:03 -05:00
parent ee14e0fd2a
commit 5b639be3c4

View File

@ -82,6 +82,12 @@ proc if_built_with_libtomcrypt {name cmd expected} {
}
}
proc if_built_with_commoncrypto {name cmd expected} {
if {[get_cipher_provider] == "commoncrypto"} {
do_test $name $cmd $expected
}
}
# The database is initially empty.
# set an hex key create some basic data
# create table and insert operations should work
@ -1886,4 +1892,14 @@ if_built_with_libtomcrypt verify-default-cipher {
db close
file delete -force test.db
if_built_with_commoncrypto verify-default-cipher {
sqlite_orig db test.db
execsql {
PRAGMA key='test';
PRAGMA cipher;
}
} {aes-256-cbc}
db close
file delete -force test.db
finish_test