restructure to allow non-amalgamated builds again

This commit is contained in:
Stephen Lombardo 2012-07-09 16:59:10 -04:00
parent 6dbdd4663c
commit bfff38581c
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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);