]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp
Allow to have multi-leveled module settings.
[stg.git] / 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);
-}
-//-----------------------------------------------------------------------------
-}