Skip to content

Commit

Permalink
Fix issue utelle#146
Browse files Browse the repository at this point in the history
Disabling all ciphers except Ascon128 led to unresolved external references, because the cipher Ascon128 has a dependency on some code of the cipher ChaCha20.
  • Loading branch information
utelle committed Mar 23, 2024
1 parent f1543a7 commit 26c5c5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sqlite3mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ SQLITE_PRIVATE int sqlite3mcGetMemorySecurity();
#include "sha1.c"
#include "sha2.c"

#if HAVE_CIPHER_CHACHA20 || HAVE_CIPHER_SQLCIPHER
#if HAVE_CIPHER_CHACHA20 || HAVE_CIPHER_SQLCIPHER || HAVE_CIPHER_ASCON128
#include "fastpbkdf2.c"

/* Prototypes for several crypto functions to make pedantic compilers happy */
Expand Down
3 changes: 2 additions & 1 deletion src/sqlite3mc_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
HAVE_CIPHER_AES_256_CBC == 0 && \
HAVE_CIPHER_CHACHA20 == 0 && \
HAVE_CIPHER_SQLCIPHER == 0 && \
HAVE_CIPHER_RC4 == 0
HAVE_CIPHER_RC4 == 0 && \
HAVE_CIPHER_ASCON128 == 0
#pragma message ("sqlite3mc_config.h: WARNING - No built-in cipher scheme enabled!")
#endif

Expand Down

0 comments on commit 26c5c5b

Please sign in to comment.