From 64579d553e4089d55c136140bd0058696d2cf526 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Jan 2021 14:54:51 +0300 Subject: another bunch of duplicate code moved to the core --- include/m_crypto.h | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'include/m_crypto.h') 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__ -- cgit v1.2.3