DQLite: use cipher_compatibility = 3 by default with OpenSSL < 1.0.0.

This commit is contained in:
levlam 2020-11-21 21:16:57 +03:00
parent 36addb042e
commit a9235d6209

View File

@ -22568,11 +22568,20 @@ end_of_export:
static volatile unsigned int default_flags = DEFAULT_CIPHER_FLAGS; static volatile unsigned int default_flags = DEFAULT_CIPHER_FLAGS;
static volatile unsigned char hmac_salt_mask = HMAC_SALT_MASK; 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_kdf_iter = PBKDF2_ITER;
static volatile int default_page_size = 4096; static volatile int default_page_size = 4096;
static volatile int default_plaintext_header_sz = 0; static volatile int default_plaintext_header_sz = 0;
static volatile int default_hmac_algorithm = SQLCIPHER_HMAC_SHA512; static volatile int default_hmac_algorithm = SQLCIPHER_HMAC_SHA512;
static volatile int default_kdf_algorithm = SQLCIPHER_PBKDF2_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_on = 1;
static volatile int mem_security_initialized = 0; static volatile int mem_security_initialized = 0;
static volatile int mem_security_activated = 0; static volatile int mem_security_activated = 0;