diff options
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbcrypt.cpp')
-rw-r--r-- | plugins/Dbx_sqlite/src/dbcrypt.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/Dbx_sqlite/src/dbcrypt.cpp b/plugins/Dbx_sqlite/src/dbcrypt.cpp new file mode 100644 index 0000000000..f0dca5a0bc --- /dev/null +++ b/plugins/Dbx_sqlite/src/dbcrypt.cpp @@ -0,0 +1,11 @@ +#include "stdafx.h" + +STDMETHODIMP_(BOOL) CDbxSQLite::StoreProvider(CRYPTO_PROVIDER *pProvider) +{ + DBCONTACTWRITESETTING dbcws = { "CryptoEngine", "Provider" }; + dbcws.value.type = DBVT_BLOB; + dbcws.value.pbVal = (PBYTE)pProvider->pszName; + dbcws.value.cpbVal = (WORD)mir_strlen(pProvider->pszName) + 1; + WriteContactSetting(0, &dbcws); + return TRUE; +} |