summaryrefslogtreecommitdiff
path: root/include/m_crypto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-08 14:54:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-08 14:54:51 +0300
commit64579d553e4089d55c136140bd0058696d2cf526 (patch)
tree7b7e6c5cd03b9060bd7080b5981938005436b432 /include/m_crypto.h
parentdae0d079ad629d499034ff911e0b1a807c19fce0 (diff)
another bunch of duplicate code moved to the core
Diffstat (limited to 'include/m_crypto.h')
-rw-r--r--include/m_crypto.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/include/m_crypto.h b/include/m_crypto.h
index 53a599c925..9d80ee3286 100644
--- a/include/m_crypto.h
+++ b/include/m_crypto.h
@@ -77,32 +77,16 @@ struct CRYPTO_PROVIDER
pfnCryptoProviderFactory pFactory;
};
-#define MS_CRYPTO_REGISTER_ENGINE "Crypto/RegisterEngine"
+MIR_APP_DLL(void) Crypto_RegisterEngine(const CRYPTO_PROVIDER *pProvider);
///////////////////////////////////////////////////////////////////////////////////////////////
// retrieves list of all available crypto providers
-// wParam = (WPARAM)(int*)piNumProviders
-// lParam = (CRYPTO_PROVIDER***)pointer to an array of CRYPTO_PROVIDER*
-// always returns 0
-#define MS_CRYPTO_ENUM_PROVIDERS "Crypto/EnumProviders"
-
-__forceinline void Crypto_EnumProviders(int *numProvs, CRYPTO_PROVIDER ***pResult)
-{
- CallService(MS_CRYPTO_ENUM_PROVIDERS, WPARAM(numProvs), LPARAM(pResult));
-}
+MIR_APP_DLL(void) Crypto_ListProviders(int *pCount, CRYPTO_PROVIDER ***pList);
///////////////////////////////////////////////////////////////////////////////////////////////
// retrieves a crypto provider by name
-// wParam = 0 (unused)
-// lParam = (const char*)pszProviderName = CRYPTO_PROVIDER::pszName
-// returns 0 on fail or CRYPTO_PROVIDER* on success
-#define MS_CRYPTO_GET_PROVIDER "Crypto/GetProvider"
-
-__forceinline CRYPTO_PROVIDER* Crypto_GetProvider(const char *pszName)
-{
- return (CRYPTO_PROVIDER*)CallService(MS_CRYPTO_GET_PROVIDER, 0, LPARAM(pszName));
-}
+MIR_APP_DLL(CRYPTO_PROVIDER*) Crypto_GetProvider(const char *pszName);
#endif // M_CRYPTO_H__