mirror of
https://github.com/status-im/sqlcipher.git
synced 2025-02-22 16:58:14 +00:00
log error for android through log API
This commit is contained in:
parent
05ed3bfe86
commit
16835799b4
@ -113,8 +113,15 @@ static int sqlcipher_openssl_activate(void *ctx) {
|
||||
#ifdef SQLCIPHER_FIPS
|
||||
if(!FIPS_mode()){
|
||||
if(!FIPS_mode_set(1)){
|
||||
unsigned long err = 0;
|
||||
ERR_load_crypto_strings();
|
||||
#ifdef __ANDROID__
|
||||
while((err = ERR_get_error()) != 0) {
|
||||
__android_log_print(ANDROID_LOG_ERROR, "sqlcipher","error: %lx. %s.", err, ERR_error_string(err, NULL));
|
||||
}
|
||||
#else
|
||||
ERR_print_errors_fp(stderr);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user