From d6e05cc3bca53565d9ca65377ab8b0b6190774b3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Nov 2013 18:01:14 +0000 Subject: preparing to the transparent cyphering: end of MS_DB_CRYPT_ENCODESTRING/MS_DB_CRYPT_DECODESTRING git-svn-id: http://svn.miranda-ng.org/main/trunk@6938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/delphi/m_database.inc | 23 ----------------------- include/m_database.h | 24 ------------------------ 2 files changed, 47 deletions(-) (limited to 'include') diff --git a/include/delphi/m_database.inc b/include/delphi/m_database.inc index 051690457c..97dae60205 100644 --- a/include/delphi/m_database.inc +++ b/include/delphi/m_database.inc @@ -251,29 +251,6 @@ const MS_DB_EVENT_GETSTRINGT:PAnsiChar = 'DB/Event/GetStringT'; -//************************** Encryption **************************** - - { - wParam : size in bytes of string buffer (including null term) - lParam : pointer to string buffer - Affect : Scrambles the string buffer in place using a strange encryption algorithm, - see notes - Returns: Always returns 0 - notes : this service may be changed at a later date such that it increasess - the length of the string - } - MS_DB_CRYPT_ENCODESTRING:PAnsiChar = 'DB/Crypt/EncodeString'; - - { - wParam : size in bytes of string buffer, including null term - lParam : pointer to string buffer - Affect : Descrambles pszString in-place using the strange encryption algorithm, - see notes. - Return : Always returns 0 - notes : Reverses the operation done by MS_DB_CRYPT_ENCODINGSTRING - } - MS_DB_CRYPT_DECODESTRING:PAnsiChar = 'DB/Crypt/DecodeString'; - //**************************** Time ******************************** { diff --git a/include/m_database.h b/include/m_database.h index 828037353f..ddc32d1e7b 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -366,30 +366,6 @@ __forceinline TCHAR* DbGetEventStringT(DBEVENTINFO* dbei, const char* str) return (TCHAR*)CallService(MS_DB_EVENT_GETSTRINGT, (WPARAM)dbei, (LPARAM)str); } -/************************** Encryption ****************************/ - -/* DB/Crypt/EncodeString -Scrambles pszString in-place using a strange encryption algorithm - wParam = (WPARAM)(int)cbString - lParam = (LPARAM)(char*)pszString -cbString is the size of the buffer pointed to by pszString, *not* the length -of pszString. This service may be changed at a later date such that it -increases the length of pszString -Returns 0 always -*/ -#define MS_DB_CRYPT_ENCODESTRING "DB/Crypt/EncodeString" - -/* DB/Crypt/DecodeString -Descrambles pszString in-place using the strange encryption algorithm - wParam = (WPARAM)(int)cbString - lParam = (LPARAM)(char*)pszString -Reverses the operation done by crypt/encodestring -cbString is the size of the buffer pointed to by pszString, *not* the length -of pszString. -Returns 0 always -*/ -#define MS_DB_CRYPT_DECODESTRING "DB/Crypt/DecodeString" - /**************************** Time ********************************/ /* DB/Time/TimestampToLocal -- cgit v1.2.3