sqlcipher_activate();
if(nKey && zKey && pDb->pBt) {
- int rc;
Pager *pPager = pDb->pBt->pBt->pPager;
sqlcipher3_file *fd = sqlcipher3Pager_get_fd(pPager);
codec_ctx *ctx;
/* point the internal codec argument against the contet to be prepared */
- rc = sqlcipher_codec_ctx_init(&ctx, pDb, pDb->pBt->pBt->pPager, fd, zKey, nKey);
+ sqlcipher_codec_ctx_init(&ctx, pDb, pDb->pBt->pBt->pPager, fd, zKey, nKey);
sqlcipher3pager_sqlcipher3PagerSetCodec(sqlcipher3BtreePager(pDb->pBt), sqlcipher3Codec, NULL, sqlcipher3FreeCodecArg, (void *) ctx);
}
SQLCIPHER_API void sqlcipher3_activate_see(const char* in) {
+ (void) in;
/* do nothing, security enhancements are always active */
}
*iCtx = sqlcipher_malloc(sizeof(codec_ctx));
ctx = *iCtx;
+ (void) pPager;
+
if(ctx == NULL) return SQLCIPHER_NOMEM;
memset(ctx, 0, sizeof(codec_ctx)); /* initialize all pointers and values to 0 */
int rc = SQLCIPHER_OK; /* Return code from service routines */
char *zSql = NULL; /* SQL statements */
char *pzErrMsg = NULL;
-
+
+ (void) argc;
+
saved_flags = db->flags;
saved_nChange = db->nChange;
saved_nTotalChange = db->nTotalChange;