mirror of
https://github.com/status-im/sqlcipher.git
synced 2025-02-24 01:38:09 +00:00
restructure to allow non-amalgamated builds again
This commit is contained in:
parent
6dbdd4663c
commit
bfff38581c
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user