Sitelet https://github.com/luquick/sqlcipher/commit/b66b1420c3d09baa9b7a6124de08375582e18284
Skip to content

Commit b66b142

Browse files
committed
adjust return values for commoncrypto
1 parent 96055de commit b66b142

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/crypto_cc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/* generate a defined number of random bytes */
88
static int sqlcipher_cc_random (void *ctx, void *buffer, int length) {
9-
return (SecRandomCopyBytes(kSecRandomDefault, length, (uint8_t *)buffer) == 0);
9+
return (SecRandomCopyBytes(kSecRandomDefault, length, (uint8_t *)buffer) == 0) ? SQLITE_OK : SQLITE_ERROR;
1010
}
1111

1212
static const char* sqlcipher_cc_get_provider_name(void *ctx) {

0 commit comments

Comments
 (0)