Remove static modifier from codec password storage functions
This commit is contained in:
parent
54da745d45
commit
7180cded4d
|
@ -216,9 +216,9 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx);
|
|||
int sqlcipher_codec_add_random(codec_ctx *ctx, const char *data, int random_sz);
|
||||
int sqlcipher_cipher_profile(sqlite3 *db, const char *destination);
|
||||
static void sqlcipher_profile_callback(void *file, const char *sql, sqlite3_uint64 run_time);
|
||||
static int sqlcipher_codec_get_store_pass(codec_ctx *ctx);
|
||||
static void sqlcipher_codec_get_pass(codec_ctx *ctx, void **zKey, int *nKey);
|
||||
static void sqlcipher_codec_set_store_pass(codec_ctx *ctx, int value);
|
||||
int sqlcipher_codec_get_store_pass(codec_ctx *ctx);
|
||||
void sqlcipher_codec_get_pass(codec_ctx *ctx, void **zKey, int *nKey);
|
||||
void sqlcipher_codec_set_store_pass(codec_ctx *ctx, int value);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -434,15 +434,15 @@ static int sqlcipher_cipher_ctx_set_keyspec(cipher_ctx *ctx, const unsigned char
|
|||
return SQLITE_OK;
|
||||
}
|
||||
|
||||
static int sqlcipher_codec_get_store_pass(codec_ctx *ctx) {
|
||||
int sqlcipher_codec_get_store_pass(codec_ctx *ctx) {
|
||||
return ctx->read_ctx->store_pass;
|
||||
}
|
||||
|
||||
static void sqlcipher_codec_set_store_pass(codec_ctx *ctx, int value) {
|
||||
void sqlcipher_codec_set_store_pass(codec_ctx *ctx, int value) {
|
||||
ctx->read_ctx->store_pass = value;
|
||||
}
|
||||
|
||||
static void sqlcipher_codec_get_pass(codec_ctx *ctx, void **zKey, int *nKey) {
|
||||
void sqlcipher_codec_get_pass(codec_ctx *ctx, void **zKey, int *nKey) {
|
||||
*zKey = ctx->read_ctx->pass;
|
||||
*nKey = ctx->read_ctx->pass_sz;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue