Initial commit

This commit is contained in:
InoriRus
2021-12-01 19:29:27 +10:00
parent b1e7dcdc5d
commit 43f49c8763
1843 changed files with 1111694 additions and 0 deletions
File diff suppressed because it is too large Load Diff
+11
View File
@@ -0,0 +1,11 @@
#ifndef _3RDPARTY_SQLITE_INCLUDE_SQLITE3_OPTIONS_H_
#define _3RDPARTY_SQLITE_INCLUDE_SQLITE3_OPTIONS_H_
#define SQLITE_HAS_CODEC 1
#define SQLITE_ENABLE_COLUMN_METADATA 1 /* Access to meta-data about tables and queries */
#define SQLITE_THREADSAFE 1 /* In serialized mode, SQLite can be safely used by multiple threads with no restriction. */
#define SQLITE_TEMP_STORE 3 /* Always use memory */
#define SQLITE_OS_OTHER 1 /* Omit its built-in operating system interfaces */
#define SQLITE_OMIT_AUTOINIT 1 /* SQLite will not automatically initialize itself */
#endif /* _3RDPARTY_SQLITE_INCLUDE_SQLITE3_OPTIONS_H_ */
+56
View File
@@ -0,0 +1,56 @@
/*
** Name: sqlite3secure.h
** Purpose: Header file for SQLite codecs
** Author: Ulrich Telle
** Created: 2018-03-30
** Copyright: (c) 2018 Ulrich Telle
** License: LGPL-3.0+ WITH WxWindows-exception-3.1
*/
#ifndef SQLITE3SECURE_H_
#define SQLITE3SECURE_H_
#include "sqlite3.h"
// Symbols for ciphers
#define CODEC_TYPE_UNKNOWN 0
#define CODEC_TYPE_AES128 1
#define CODEC_TYPE_AES256 2
#define CODEC_TYPE_CHACHA20 3
#define CODEC_TYPE_SQLCIPHER 4
#define CODEC_TYPE_MAX 4
// Define Windows specific SQLite API functions (not defined in sqlite3.h)
#if SQLITE_VERSION_NUMBER >= 3007014
#if SQLITE_OS_WIN == 1
#ifdef __cplusplus
extern "C" {
#endif
#if SQLITE_VERSION_NUMBER >= 3024000
SQLITE_API int sqlite3_win32_set_directory(unsigned long type, void* zValue);
#else
SQLITE_API int sqlite3_win32_set_directory(DWORD type, LPCWSTR zValue);
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif
#ifdef SQLITE_HAS_CODEC
// Define functions for the configuration of the wxSQLite3 encryption extension
#ifdef __cplusplus
extern "C" {
#endif
SQLITE_API int wxsqlite3_config(sqlite3* db, const char* paramName, int newValue);
SQLITE_API int wxsqlite3_config_cipher(sqlite3* db, const char* cipherName, const char* paramName, int newValue);
SQLITE_API unsigned char* wxsqlite3_codec_data(sqlite3* db, const char* zDbName, const char* paramName);
#ifdef __cplusplus
}
#endif
#endif
#endif