Skip to content

Commit 92cec1c

Browse files
Default crypto provider to OpenSSL
When no crypto provider has been specified, set the SQLCIPHER_CRYPTO_OPENSSL flag.
1 parent a828432 commit 92cec1c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/crypto.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
#ifndef CRYPTO_H
3636
#define CRYPTO_H
3737

38+
#if !defined (SQLCIPHER_CRYPTO_CC) \
39+
&& !defined(SQLCIPHER_CRYPTO_LIBTOMCRYPT) \
40+
&& !defined(SQLCIPHER_CRYPTO_OPENSSL)
41+
#define SQLCIPHER_CRYPTO_OPENSSL
42+
#endif
43+
3844
#define FILE_HEADER_SZ 16
3945

4046
#ifndef CIPHER_VERSION

0 commit comments

Comments
 (0)