File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ proc if_built_with_libtomcrypt {name cmd expected} {
82
82
}
83
83
}
84
84
85
+ proc if_built_with_commoncrypto {name cmd expected} {
86
+ if {[get_cipher_provider] == "commoncrypto"} {
87
+ do_test $name $cmd $expected
88
+ }
89
+ }
90
+
85
91
# The database is initially empty.
86
92
# set an hex key create some basic data
87
93
# create table and insert operations should work
@@ -1886,4 +1892,14 @@ if_built_with_libtomcrypt verify-default-cipher {
1886
1892
db close
1887
1893
file delete -force test.db
1888
1894
1895
+ if_built_with_commoncrypto verify-default-cipher {
1896
+ sqlite_orig db test.db
1897
+ execsql {
1898
+ PRAGMA key='test';
1899
+ PRAGMA cipher;
1900
+ }
1901
+ } {aes-256-cbc}
1902
+ db close
1903
+ file delete -force test.db
1904
+
1889
1905
finish_test
You can’t perform that action at this time.
0 commit comments