File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ namespace sqlite {
327327 database (std::u16string(db_name.begin(), db_name.end()), config) {}
328328
329329 database (const std::u16string &db_name, const sqlite_config &config): database(db_name) {
330- #ifdef SQLITE_HAS_CODEC
330+ #ifdef ENABLE_SQLCIPHER
331331 if (!config.key .empty ()) set_key (config.key );
332332#else
333333 assert (config.key .empty () && " Encryption supported is disabled." );
@@ -357,7 +357,7 @@ namespace sqlite {
357357 return sqlite3_last_insert_rowid (_db.get ());
358358 }
359359
360- #ifdef SQLITE_HAS_CODEC
360+ #ifdef ENABLE_SQLCIPHER
361361 void set_key (const std::string &key) {
362362 if (auto ret = sqlite3_key (_db.get (), key.data (), key.size ()))
363363 exceptions::throw_sqlite_error (ret);
You can’t perform that action at this time.
0 commit comments