Using the _v2 version of key and rekey.
This commit is contained in:
parent
1f17e15851
commit
20a92abadb
|
@ -1810,10 +1810,10 @@ void sqlite3Pragma(
|
|||
|
||||
#ifdef SQLITE_HAS_CODEC
|
||||
if( sqlite3StrICmp(zLeft, "key")==0 && zRight ){
|
||||
sqlite3_key(db, zRight, sqlite3Strlen30(zRight));
|
||||
sqlite3_key_v2(db, zDb, zRight, sqlite3Strlen30(zRight));
|
||||
}else
|
||||
if( sqlite3StrICmp(zLeft, "rekey")==0 && zRight ){
|
||||
sqlite3_rekey(db, zRight, sqlite3Strlen30(zRight));
|
||||
sqlite3_rekey_v2(db, zDb, zRight, sqlite3Strlen30(zRight));
|
||||
}else
|
||||
if( zRight && (sqlite3StrICmp(zLeft, "hexkey")==0 ||
|
||||
sqlite3StrICmp(zLeft, "hexrekey")==0) ){
|
||||
|
@ -1825,9 +1825,9 @@ void sqlite3Pragma(
|
|||
zKey[i/2] = (h2 & 0x0f) | ((h1 & 0xf)<<4);
|
||||
}
|
||||
if( (zLeft[3] & 0xf)==0xb ){
|
||||
sqlite3_key(db, zKey, i/2);
|
||||
sqlite3_key_v2(db, zDb, zKey, i/2);
|
||||
}else{
|
||||
sqlite3_rekey(db, zKey, i/2);
|
||||
sqlite3_rekey_v2(db, zDb, zKey, i/2);
|
||||
}
|
||||
}else
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue