DQLite: use cipher_compatibility = 3 by default with OpenSSL < 1.0.0.
This commit is contained in:
parent
36addb042e
commit
a9235d6209
9
sqlite/sqlite/sqlite3.c
vendored
9
sqlite/sqlite/sqlite3.c
vendored
@ -22568,11 +22568,20 @@ end_of_export:
|
||||
|
||||
static volatile unsigned int default_flags = DEFAULT_CIPHER_FLAGS;
|
||||
static volatile unsigned char hmac_salt_mask = HMAC_SALT_MASK;
|
||||
|
||||
#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10000000L
|
||||
static volatile int default_kdf_iter = 64000;
|
||||
static volatile int default_page_size = 1024;
|
||||
static volatile int default_plaintext_header_sz = 0;
|
||||
static volatile int default_hmac_algorithm = SQLCIPHER_HMAC_SHA1;
|
||||
static volatile int default_kdf_algorithm = SQLCIPHER_PBKDF2_HMAC_SHA1;
|
||||
#else
|
||||
static volatile int default_kdf_iter = PBKDF2_ITER;
|
||||
static volatile int default_page_size = 4096;
|
||||
static volatile int default_plaintext_header_sz = 0;
|
||||
static volatile int default_hmac_algorithm = SQLCIPHER_HMAC_SHA512;
|
||||
static volatile int default_kdf_algorithm = SQLCIPHER_PBKDF2_HMAC_SHA512;
|
||||
#endif
|
||||
static volatile int mem_security_on = 1;
|
||||
static volatile int mem_security_initialized = 0;
|
||||
static volatile int mem_security_activated = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user