mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 20:29:53 +00:00
nix: patch to replace ERR_error_string with ERR_func_error_string
This commit is contained in:
parent
9d70cf1e7b
commit
f6e2f11299
2 changed files with 13 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
packages.direct-sqlcipher.patches = [
|
||||
./scripts/nix/direct-sqlcipher-2.3.27.patch
|
||||
./scripts/nix/direct-sqlcipher-android.patch
|
||||
./scripts/nix/direct-sqlcipher-err-string.patch
|
||||
];
|
||||
packages.entropy.patches = [ ./scripts/nix/entropy.patch ];
|
||||
}
|
||||
|
|
12
scripts/nix/direct-sqlcipher-err-string.patch
Normal file
12
scripts/nix/direct-sqlcipher-err-string.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/cbits/sqlite3.c b/cbits/sqlite3.c
|
||||
index 66bb609..ca32723 100644
|
||||
--- a/cbits/sqlite3.c
|
||||
+++ b/cbits/sqlite3.c
|
||||
@@ -105731,7 +105731,7 @@ static unsigned int openssl_init_count = 0;
|
||||
static void sqlcipher_openssl_log_errors() {
|
||||
unsigned long err = 0;
|
||||
while((err = ERR_get_error()) != 0) {
|
||||
- sqlcipher_log(SQLCIPHER_LOG_ERROR, "sqlcipher_openssl_log_errors: ERR_get_error() returned %lx: %s", err, ERR_error_string(err, NULL));
|
||||
+ sqlcipher_log(SQLCIPHER_LOG_ERROR, "sqlcipher_openssl_log_errors: ERR_get_error() returned %lx: %s", err, ERR_func_error_string(err));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue