Skip to content

Commit bfff385

Browse files
committed
restructure to allow non-amalgamated builds again
1 parent 6dbdd46 commit bfff385

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/crypto.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
#include "btreeInt.h"
3939
#include "crypto.h"
4040

41+
const char* codec_get_cipher_version() {
42+
return CIPHER_VERSION;
43+
}
44+
4145
/* Generate code to return a string value */
4246
void codec_vdbe_return_static_string(Parse *pParse, const char *zLabel, const char *value){
4347
Vdbe *v = sqlite3GetVdbe(pParse);

src/pragma.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,8 @@ void sqlite3Pragma(
15371537
/** BEGIN CRYPTO **/
15381538
if( sqlite3StrICmp(zLeft, "cipher_version")==0 && !zRight ){
15391539
extern void codec_vdbe_return_static_string(Parse *pParse, const char *zLabel, const char *value);
1540-
codec_vdbe_return_static_string(pParse, "cipher_version", CIPHER_VERSION);
1540+
extern const char* codec_get_cipher_version();
1541+
codec_vdbe_return_static_string(pParse, "cipher_version", codec_get_cipher_version());
15411542
}else
15421543
if( sqlite3StrICmp(zLeft, "cipher")==0 && zRight ){
15431544
extern int codec_set_cipher_name(sqlite3*, int, const char *, int);

0 commit comments

Comments
 (0)