We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba319a commit c5360e1Copy full SHA for c5360e1
1 file changed
src/crypto_cc.c
@@ -36,6 +36,10 @@
36
#include <CommonCrypto/CommonCrypto.h>
37
#include <Security/SecRandom.h>
38
39
+static int sqlcipher_cc_add_random(void *ctx, void *buffer, int length) {
40
+ return SQLITE_OK;
41
+}
42
+
43
/* generate a defined number of random bytes */
44
static int sqlcipher_cc_random (void *ctx, void *buffer, int length) {
45
return (SecRandomCopyBytes(kSecRandomDefault, length, (uint8_t *)buffer) == 0) ? SQLITE_OK : SQLITE_ERROR;
@@ -132,6 +136,7 @@ int sqlcipher_cc_setup(sqlcipher_provider *p) {
132
136
p->ctx_cmp = sqlcipher_cc_ctx_cmp;
133
137
p->ctx_init = sqlcipher_cc_ctx_init;
134
138
p->ctx_free = sqlcipher_cc_ctx_free;
139
+ p->add_random = sqlcipher_cc_add_random;
135
140
return SQLITE_OK;
141
}
142
0 commit comments