From 398753a6a573657a4dc447d519d7cab8e306fff8 Mon Sep 17 00:00:00 2001 From: Mathias Berchtold Date: Thu, 3 Sep 2026 02:47:12 +0200 Subject: [PATCH] Allow value-level encryption to be controlled by a compiler define Allow value-level encryption to be controlled by a compiler define. Preserve enabled default unless SQLITE3MC_ENABLE_VLE is supplied by the build. --- src/sqlite3mc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sqlite3mc.c b/src/sqlite3mc.c index a1f81482..2ac46ae3 100644 --- a/src/sqlite3mc.c +++ b/src/sqlite3mc.c @@ -370,8 +370,10 @@ int sqlite3_zipfile_init(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routine /* ** VLE - Value Level Encryption */ +#ifndef SQLITE3MC_ENABLE_VLE #define SQLITE3MC_ENABLE_VLE 1 -#ifdef SQLITE3MC_ENABLE_VLE +#endif +#if SQLITE3MC_ENABLE_VLE SQLITE_API int sqlite3_vle_init(sqlite3* db, char** pzErrMsg, const sqlite3_api_routines* pApi); #include "sqlite3mc_vle.c" @@ -811,7 +813,7 @@ sqlite3mc_builtin_extensions(sqlite3* db) rc = sqlite3_zipfile_init(db, &errmsg, NULL); } #endif -#ifdef SQLITE3MC_ENABLE_VLE +#if SQLITE3MC_ENABLE_VLE if (rc == SQLITE_OK) { rc = sqlite3_vle_init(db, &errmsg, NULL);