diff --git a/src/crypto.c b/src/crypto.c index 3423b0a..dd0ba0f 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -38,6 +38,10 @@ #include "btreeInt.h" #include "crypto.h" +const char* codec_get_cipher_version() { + return CIPHER_VERSION; +} + /* Generate code to return a string value */ void codec_vdbe_return_static_string(Parse *pParse, const char *zLabel, const char *value){ Vdbe *v = sqlite3GetVdbe(pParse); diff --git a/src/pragma.c b/src/pragma.c index 09282a7..5c991ab 100644 --- a/src/pragma.c +++ b/src/pragma.c @@ -1537,7 +1537,8 @@ void sqlite3Pragma( /** BEGIN CRYPTO **/ if( sqlite3StrICmp(zLeft, "cipher_version")==0 && !zRight ){ extern void codec_vdbe_return_static_string(Parse *pParse, const char *zLabel, const char *value); - codec_vdbe_return_static_string(pParse, "cipher_version", CIPHER_VERSION); + extern const char* codec_get_cipher_version(); + codec_vdbe_return_static_string(pParse, "cipher_version", codec_get_cipher_version()); }else if( sqlite3StrICmp(zLeft, "cipher")==0 && zRight ){ extern int codec_set_cipher_name(sqlite3*, int, const char *, int);