summaryrefslogtreecommitdiff
path: root/src/core/stdcrypt
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-12 19:51:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-12 19:51:48 +0000
commit72eb97b648861bcd03744a027eb09d0410acdf1e (patch)
treee867e779c9ed9edecba9e4e31cd062d338cacad3 /src/core/stdcrypt
parentfd82bb19cb63232fbd5efff23ee2941d648047a9 (diff)
first MS_CRYPTO_REGISTER_ENGINE implementation
git-svn-id: http://svn.miranda-ng.org/main/trunk@6879 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdcrypt')
-rw-r--r--src/core/stdcrypt/commonheaders.h1
-rw-r--r--src/core/stdcrypt/encrypt.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/stdcrypt/commonheaders.h b/src/core/stdcrypt/commonheaders.h
index 4edcc6e358..a16eb54b8e 100644
--- a/src/core/stdcrypt/commonheaders.h
+++ b/src/core/stdcrypt/commonheaders.h
@@ -65,6 +65,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_icolib.h>
#include <m_modernopt.h>
#include <m_timezones.h>
+#include <m_crypto.h>
#include "version.h"
diff --git a/src/core/stdcrypt/encrypt.cpp b/src/core/stdcrypt/encrypt.cpp
index e86e34437d..fc72e74abc 100644
--- a/src/core/stdcrypt/encrypt.cpp
+++ b/src/core/stdcrypt/encrypt.cpp
@@ -25,5 +25,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
int LoadEncryptionModule(void)
{
+ CRYPTO_PROVIDER cp = { sizeof(cp) };
+ cp.pszName = "AES (Rjindale)";
+ cp.pszDescr = LPGEN("Standard crypto provider");
+ Crypto_RegisterEngine(&cp);
return 0;
}