Why have you not implemented a xCodecSizeChng function?
Why have you implemented a seperate sqlite3pager_sqlite3PagerSetCodec
as a wrapper over sqlite3PagerSetCodec?
Have sent you a seperate mail with my updated source code. Please take
a look at it when you are free.
Regards
Abhijit Bera
On Dec 17, 4:23 am, Stephen Lombardo <sjlomba...@zetetic.net> wrote:
> Hi Abhijit,
>
> Your assessment and analysis looks correct. Answers to your quesetions are
> inline below.
>
Where exactly is the macro SQLITE_HAS_CODEC defined?
I tried looking everywhere. It's neither defined in the source code
nor in the Makefiles with a -D option. So how are the CODEC code
blocks getting included?
Regards
Abhijit Bera
1) I disabled compilation of the amalgamation
2) I included a -DSQLITE_HAS_CODEC in the TCC variable
and it compiled! :)
I installed it under /usr/local/lib so that I could keep my original
sqlite3 libraries intact. I don't want to get rid of them as lot of
other software on my system are dependent on it.
But now one more problem.
I wrote a simple program to test:
#include <stdio.h>
#include <sqlite3.h>
void main() {
sqlite3 *db;
sqlite3_open("mydb.db",&db);
sqlite3_key(db,"Hello1234",9);
}
Compiled it with: gcc hello.c -I/usr/include -L/usr/lib -lsqlite3 -
lpthread -o hello
and got this error:
/tmp/ccW50STn.o: In function `main':
hello.c:(.text+0x3b): undefined reference to `sqlite3_key'
collect2: ld returned 1 exit status
:(
Abhijit Bera
I found errors in my code. Going to fix them.
Can I just include crypto_vaccum.c to allow plaintext db rekey
support?
It's done. Will mail it to you soon as a tarball. Please see it and
tell me if it is of any use.
Also I will be hosting it shortly on my website.
Regards
Abhijit Bera