Skip to content

Commit a1fb0d2

Browse files
Merge branch 'prerelease'
2 parents b13e77f + 5818768 commit a1fb0d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/crypto_openssl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ static int sqlcipher_openssl_activate(void *ctx) {
7272
}
7373
openssl_init_count++;
7474
}
75+
return SQLITE_OK;
7576
}
7677

7778
/* deactivate SQLCipher, most imporantly decremeting the activation count and
@@ -92,6 +93,7 @@ static int sqlcipher_openssl_deactivate(void *ctx) {
9293
}
9394
}
9495
sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
96+
return SQLITE_OK;
9597
}
9698

9799
static const char* sqlcipher_openssl_get_provider_name(void *ctx) {
@@ -105,7 +107,7 @@ static int sqlcipher_openssl_random (void *ctx, void *buffer, int length) {
105107

106108
static int sqlcipher_openssl_hmac(void *ctx, unsigned char *hmac_key, int key_sz, unsigned char *in, int in_sz, unsigned char *in2, int in2_sz, unsigned char *out) {
107109
HMAC_CTX hctx;
108-
int outlen;
110+
unsigned int outlen;
109111
HMAC_CTX_init(&hctx);
110112
HMAC_Init_ex(&hctx, hmac_key, key_sz, EVP_sha1(), NULL);
111113
HMAC_Update(&hctx, in, in_sz);
@@ -204,6 +206,7 @@ int sqlcipher_openssl_setup(sqlcipher_provider *p) {
204206
p->ctx_init = sqlcipher_openssl_ctx_init;
205207
p->ctx_free = sqlcipher_openssl_ctx_free;
206208
p->add_random = sqlcipher_openssl_add_random;
209+
return SQLITE_OK;
207210
}
208211

209212
#endif

0 commit comments

Comments
 (0)