diff options
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
|