]> git.stg.codes - stg.git/commitdiff
Removed old InitEncrypt function.
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 28 Sep 2014 15:44:26 +0000 (18:44 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 10 Jan 2015 18:58:27 +0000 (20:58 +0200)
projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp

index f64211d03dd7f50529c071671850d847b7b8396d..9c8ae1af440b6de691830cc0e25d1604ae54ab56 100644 (file)
@@ -55,8 +55,6 @@ extern volatile time_t stgTime;
 namespace
 {
 PLUGIN_CREATOR<AUTH_IA> iac;
-
-void InitEncrypt(BLOWFISH_CTX * ctx, const std::string & password);
 }
 
 extern "C" PLUGIN * GetPlugin();
@@ -1718,16 +1716,3 @@ ip2user.erase(it);
 
 return res;
 }
-namespace
-{
-//-----------------------------------------------------------------------------
-inline
-void InitEncrypt(BLOWFISH_CTX * ctx, const std::string & password)
-{
-unsigned char keyL[PASSWD_LEN];
-memset(keyL, 0, PASSWD_LEN);
-strncpy((char *)keyL, password.c_str(), PASSWD_LEN);
-Blowfish_Init(ctx, keyL, PASSWD_LEN);
-}
-//-----------------------------------------------------------------------------
-}