diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-22 19:39:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-22 19:39:57 +0300 |
commit | d01ef0db6be8b7cb45eef8f41d69fd4e567cb7cf (patch) | |
tree | 6c33c392793e11f06024ae55c7f658a3cae7d0b3 /include | |
parent | f56d89298e23be23b16efd33fc375eb4a9971c12 (diff) |
m_crypto.h => CMPlugin
Diffstat (limited to 'include')
-rw-r--r-- | include/m_crypto.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/include/m_crypto.h b/include/m_crypto.h index ed59a858e6..31007715a4 100644 --- a/include/m_crypto.h +++ b/include/m_crypto.h @@ -57,7 +57,7 @@ struct MICryptoEngine /////////////////////////////////////////////////////////////////////////////////////////
// registers a crypto provider v0.94+
-// wParam = (int)hLangpack
+// wParam = 0
// lParam = (CRYPTO_PROVIDER*)
// returns HANDLE on success or NULL on failure
@@ -65,29 +65,20 @@ typedef MICryptoEngine* (__cdecl *pfnCryptoProviderFactory)(void); #define CPF_UNICODE 1
-typedef struct tagCRYPTOPROVIDER
+struct CRYPTO_PROVIDER
{
DWORD dwSize;
DWORD dwFlags; // one of CPF_* constants
+ int iLangId;
char *pszName; // unique id
- union {
- char *pszDescr; // description
- wchar_t *ptszDescr; // auto translated by core
- wchar_t *pwszDescr;
- };
+ MAllStrings szDescr; // description
pfnCryptoProviderFactory pFactory;
-}
- CRYPTO_PROVIDER;
+};
#define MS_CRYPTO_REGISTER_ENGINE "Crypto/RegisterEngine"
-__forceinline HANDLE Crypto_RegisterEngine(CRYPTO_PROVIDER *pProvider)
-{
- return (HANDLE)CallService(MS_CRYPTO_REGISTER_ENGINE, hLangpack, (LPARAM)pProvider);
-}
-
///////////////////////////////////////////////////////////////////////////////////////////////
// retrieves list of all available crypto providers
// wParam = (WPARAM)(int*)piNumProviders
|