diff options
| author | 2018-07-27 23:54:15 -0400 | |
|---|---|---|
| committer | 2018-07-27 23:54:15 -0400 | |
| commit | 6d3d39356473078c6b47e03b8a7616e4b34de928 (patch) | |
| tree | fe5be2e6a08e4cfc73207746aba4c9fccfecfa10 /Plugins/DbSqliteSystemData/systemdata_crypt.c | |
| parent | f98e49169a40876bcf1df832de6e908d1b350193 (diff) | |
| parent | feda8a7db8d1d7c5439aa8f8feef7cc0dd2b59a0 (diff) | |
Update upstream source from tag 'upstream/3.2.1+dfsg1'
Update to upstream version '3.2.1+dfsg1'
with Debian dir 5ea0333565de4dc898c062cc0ff4ba1153e2c1e4
Diffstat (limited to 'Plugins/DbSqliteSystemData/systemdata_crypt.c')
| -rw-r--r-- | Plugins/DbSqliteSystemData/systemdata_crypt.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/Plugins/DbSqliteSystemData/systemdata_crypt.c b/Plugins/DbSqliteSystemData/systemdata_crypt.c index 7268aba..67ec475 100644 --- a/Plugins/DbSqliteSystemData/systemdata_crypt.c +++ b/Plugins/DbSqliteSystemData/systemdata_crypt.c @@ -10,7 +10,6 @@ #include <windows.h>
#include <wincrypt.h>
-#include "systemdata_sqlite3.h"
/* Extra padding before and after the cryptographic buffer */
#define CRYPT_OFFSET 8
@@ -35,10 +34,6 @@ static void * systemdata_sqlite3pager_get_codecarg(Pager *pPager) return (pPager->xCodec) ? pPager->pCodec: NULL;
}
-void systemdata_sqlite3_activate_see(const char *info)
-{
-}
-
/* Create a cryptographic context. Use the enhanced provider because it is available on
** most platforms
*/
@@ -153,7 +148,7 @@ void systemdata_sqlite3CodecSizeChange(void *pArg, int pageSize, int reservedSiz }
/* Encrypt/Decrypt functionality, called by pager.c */
-void * systemdata_sqlite3Codec(void *pArg, void *data, Pgno nPageNum, int nMode)
+static void *systemdata_sqlite3Codec(void *pArg, void *data, Pgno nPageNum, int nMode)
{
LPCRYPTBLOCK pBlock = (LPCRYPTBLOCK)pArg;
DWORD dwPageSize;
@@ -327,6 +322,10 @@ void systemdata_sqlite3CodecGetKey(systemdata_sqlite3 *db, int nDb, void **ppKey if (pnKeyLen) *pnKeyLen = pBlock ? 1: 0;
}
+SQLITE_API void systemdata_sqlite3_activate_see(const char *info)
+{
+}
+
/* We do not attach this key to the temp store, only the main database. */
SQLITE_API int systemdata_sqlite3_key_v2(systemdata_sqlite3 *db, const char *zDbName, const void *pKey, int nKey)
{
@@ -338,6 +337,11 @@ SQLITE_API int systemdata_sqlite3_key(systemdata_sqlite3 *db, const void *pKey, return systemdata_sqlite3_key_v2(db, 0, pKey, nKey);
}
+SQLITE_API int systemdata_sqlite3_rekey(systemdata_sqlite3 *db, const void *pKey, int nKey)
+{
+ return systemdata_sqlite3_rekey_v2(db, 0, pKey, nKey);
+}
+
/* Changes the encryption key for an existing database. */
SQLITE_API int systemdata_sqlite3_rekey_v2(systemdata_sqlite3 *db, const char *zDbName, const void *pKey, int nKey)
{
@@ -457,18 +461,6 @@ SQLITE_API int systemdata_sqlite3_rekey_v2(systemdata_sqlite3 *db, const char *z return rc;
}
-SQLITE_API int systemdata_sqlite3_rekey(systemdata_sqlite3 *db, const void *pKey, int nKey)
-{
- return systemdata_sqlite3_rekey_v2(db, 0, pKey, nKey);
-}
-
#endif /* SQLITE_HAS_CODEC */
#endif /* SQLITE_OMIT_DISKIO */
-
-
-
-
-
-
-
|
