Skip to content

Commit 339f4d3

Browse files
Exclude cipher_profile support with SQLITE_OMIT_TRACE or SQLITE_OMIT_DEPRECATED
1 parent 5f9fc6f commit 339f4d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/crypto_impl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,9 @@ int sqlcipher_codec_add_random(codec_ctx *ctx, const char *zRight, int random_sz
12091209
}
12101210

12111211
int sqlcipher_cipher_profile(sqlite3 *db, const char *destination){
1212+
#if defined(SQLITE_OMIT_TRACE) || defined(SQLITE_OMIT_DEPRECATED)
1213+
return SQLITE_ERROR;
1214+
#else
12121215
FILE *f;
12131216
if(sqlite3StrICmp(destination, "stdout") == 0){
12141217
f = stdout;
@@ -1229,6 +1232,7 @@ int sqlcipher_cipher_profile(sqlite3 *db, const char *destination){
12291232
}
12301233
sqlite3_profile(db, sqlcipher_profile_callback, f);
12311234
return SQLITE_OK;
1235+
#endif
12321236
}
12331237

12341238
static void sqlcipher_profile_callback(void *file, const char *sql, sqlite3_uint64 run_time){

0 commit comments

Comments
 (0)