]> git.stg.codes - stg.git/log
stg.git
9 years agoBackported some changes from 2.5.
Maxim Mamontov [Sat, 31 Jan 2015 18:28:14 +0000 (20:28 +0200)]
Backported some changes from 2.5.

9 years agoFixed compiler complaints.
Maxim Mamontov [Sat, 31 Jan 2015 18:15:48 +0000 (20:15 +0200)]
Fixed compiler complaints.

9 years agoFixed tests.
Maxim Mamontov [Sat, 31 Jan 2015 16:36:56 +0000 (18:36 +0200)]
Fixed tests.

9 years agoIgnore sgconf_xml.
Maxim Mamontov [Sat, 31 Jan 2015 15:30:32 +0000 (17:30 +0200)]
Ignore sgconf_xml.

9 years agoCorrected upload/download mess.
Maxim Mamontov [Sat, 31 Jan 2015 15:27:53 +0000 (17:27 +0200)]
Corrected upload/download mess.

9 years agoUserdata can also contain cyrilic symbols.
Maxim Mamontov [Sat, 31 Jan 2015 15:26:49 +0000 (17:26 +0200)]
Userdata can also contain cyrilic symbols.

9 years agoAdded necessary headers in netlink/nfq checks.
Maxim Mamontov [Sun, 25 Jan 2015 18:23:17 +0000 (20:23 +0200)]
Added necessary headers in netlink/nfq checks.

9 years agoHandle cash changes properly.
Maxim Mamontov [Sun, 25 Jan 2015 18:22:19 +0000 (20:22 +0200)]
Handle cash changes properly.

9 years agoAdded some handy funcs to work with IBPP statements.
Maxim Mamontov [Sun, 25 Jan 2015 18:21:16 +0000 (20:21 +0200)]
Added some handy funcs to work with IBPP statements.

9 years agoEncrypt including the last \0.
Maxim Mamontov [Sun, 25 Jan 2015 18:20:15 +0000 (20:20 +0200)]
Encrypt including the last \0.

9 years agoAdded SERVCONF dtor.
Maxim Mamontov [Sun, 25 Jan 2015 18:07:03 +0000 (20:07 +0200)]
Added SERVCONF dtor.

9 years agoFixed unary x2str.
Maxim Mamontov [Sun, 25 Jan 2015 18:06:12 +0000 (20:06 +0200)]
Fixed unary x2str.

9 years agoPhone number may contain cyrilic characters. Added conversion.
Maxim Mamontov [Sun, 25 Jan 2015 18:05:15 +0000 (20:05 +0200)]
Phone number may contain cyrilic characters. Added conversion.

9 years agoAdded default constructor for resetable USER_CONF.
Maxim Mamontov [Sun, 25 Jan 2015 18:04:10 +0000 (20:04 +0200)]
Added default constructor for resetable USER_CONF.

9 years agoAdded in-to-traff-type conversion.
Maxim Mamontov [Sun, 25 Jan 2015 18:03:33 +0000 (20:03 +0200)]
Added in-to-traff-type conversion.

9 years agoAllowed to build sgconf_xml on Darwin.
Maxim Mamontov [Sun, 18 Jan 2015 20:48:14 +0000 (22:48 +0200)]
Allowed to build sgconf_xml on Darwin.

9 years agoImproved release version checking.
Maxim Mamontov [Sun, 18 Jan 2015 20:38:55 +0000 (22:38 +0200)]
Improved release version checking.

9 years agoSome fixes in build scripts.
Maxim Mamontov [Sun, 18 Jan 2015 20:18:04 +0000 (22:18 +0200)]
Some fixes in build scripts.

9 years agoRemoved unused class fields.
Maxim Mamontov [Sun, 18 Jan 2015 18:33:50 +0000 (20:33 +0200)]
Removed unused class fields.

9 years agoFixed compilation of sgconf_xml.
Maxim Mamontov [Sun, 18 Jan 2015 18:12:00 +0000 (20:12 +0200)]
Fixed compilation of sgconf_xml.

9 years agoReplaced some .data() with .const_data().
Maxim Mamontov [Sun, 18 Jan 2015 18:08:56 +0000 (20:08 +0200)]
Replaced some .data() with .const_data().

9 years agoFixed compilation of sgconf.
Maxim Mamontov [Sun, 18 Jan 2015 18:01:57 +0000 (20:01 +0200)]
Fixed compilation of sgconf.

9 years agoFixed compilation of srvconf lib.
Maxim Mamontov [Sun, 18 Jan 2015 18:01:15 +0000 (20:01 +0200)]
Fixed compilation of srvconf lib.

9 years agoRemoved some unused stuff from netunit.cpp.
Maxim Mamontov [Sun, 18 Jan 2015 17:40:38 +0000 (19:40 +0200)]
Removed some unused stuff from netunit.cpp.

9 years agoRemoved unused functions.
Maxim Mamontov [Sun, 18 Jan 2015 17:34:21 +0000 (19:34 +0200)]
Removed unused functions.

9 years agoSome fixes in USER_IMPL.
Maxim Mamontov [Sat, 10 Jan 2015 20:13:18 +0000 (22:13 +0200)]
Some fixes in USER_IMPL.

9 years agoFixed compilation issues.
Maxim Mamontov [Sat, 10 Jan 2015 20:08:00 +0000 (22:08 +0200)]
Fixed compilation issues.

9 years agoAdded handy encoding functions.
Maxim Mamontov [Sat, 10 Jan 2015 20:07:04 +0000 (22:07 +0200)]
Added handy encoding functions.

9 years agoUse common case-conversion functions.
Maxim Mamontov [Sat, 10 Jan 2015 20:06:16 +0000 (22:06 +0200)]
Use common case-conversion functions.

9 years agoAdded missing include.
Maxim Mamontov [Sat, 10 Jan 2015 20:05:30 +0000 (22:05 +0200)]
Added missing include.

9 years agoMore convenient logger.
Maxim Mamontov [Sat, 10 Jan 2015 19:51:12 +0000 (21:51 +0200)]
More convenient logger.

9 years agoAdded missing include.
Maxim Mamontov [Sat, 10 Jan 2015 19:44:39 +0000 (21:44 +0200)]
Added missing include.

9 years agoAdded ToLower/ToUpper.
Maxim Mamontov [Sat, 10 Jan 2015 19:43:52 +0000 (21:43 +0200)]
Added ToLower/ToUpper.

9 years agoSimplified ToLower/ToUpper functions.
Maxim Mamontov [Sat, 10 Jan 2015 19:34:40 +0000 (21:34 +0200)]
Simplified ToLower/ToUpper functions.

9 years agoChanged version.
Maxim Mamontov [Sat, 10 Jan 2015 19:27:20 +0000 (21:27 +0200)]
Changed version.

9 years agoSettings object is now allocated on stack, no need to delete it.
Maxim Mamontov [Sun, 7 Dec 2014 11:53:13 +0000 (13:53 +0200)]
Settings object is now allocated on stack, no need to delete it.

9 years agoFixed crash on problems with loading plugins.
Maxim Mamontov [Sun, 23 Nov 2014 20:51:20 +0000 (22:51 +0200)]
Fixed crash on problems with loading plugins.

9 years agoRemoved some unused stuff from build script.
Maxim Mamontov [Fri, 21 Nov 2014 17:03:31 +0000 (19:03 +0200)]
Removed some unused stuff from build script.

9 years agoAdded a special project to build all STG libs.
Maxim Mamontov [Fri, 21 Nov 2014 16:59:12 +0000 (18:59 +0200)]
Added a special project to build all STG libs.

9 years agoCosmetic changes.
Maxim Mamontov [Sat, 25 Oct 2014 03:27:00 +0000 (06:27 +0300)]
Cosmetic changes.

9 years agoAdded messages about starting and stopping modules.
Maxim Mamontov [Sat, 25 Oct 2014 03:03:38 +0000 (06:03 +0300)]
Added messages about starting and stopping modules.

9 years agoMoved plugin-related things into a separate file.
Maxim Mamontov [Fri, 24 Oct 2014 02:56:36 +0000 (05:56 +0300)]
Moved plugin-related things into a separate file.

Conflicts:
projects/stargazer/user_impl.cpp

9 years agoMinor changes.
Maxim Mamontov [Fri, 17 Oct 2014 10:51:21 +0000 (13:51 +0300)]
Minor changes.

9 years agoAdded Makefile for tests for Darwin platform.
Maxim Mamontov [Fri, 17 Oct 2014 10:06:21 +0000 (13:06 +0300)]
Added Makefile for tests for Darwin platform.

9 years agoMoved common initialization code to a separate class method.
Maxim Mamontov [Fri, 17 Oct 2014 10:05:56 +0000 (13:05 +0300)]
Moved common initialization code to a separate class method.

Conflicts:
include/stg/user_conf.h

9 years agoDon't build projects in debug mode.
Maxim Mamontov [Sat, 4 Oct 2014 08:09:07 +0000 (11:09 +0300)]
Don't build projects in debug mode.

9 years agoFixed compilation under CLang/FreeBSD10.
Maxim Mamontov [Fri, 3 Oct 2014 19:00:05 +0000 (22:00 +0300)]
Fixed compilation under CLang/FreeBSD10.

9 years agoRemoved "using namespace std;" from sgauth.
Maxim Mamontov [Fri, 3 Oct 2014 09:46:35 +0000 (12:46 +0300)]
Removed "using namespace std;" from sgauth.

9 years agoAllowed to build on Darwin.
Maxim Mamontov [Fri, 3 Oct 2014 09:46:21 +0000 (12:46 +0300)]
Allowed to build on Darwin.

9 years agoRemoved "using namespace std;" from sgconv.
Maxim Mamontov [Fri, 3 Oct 2014 09:36:02 +0000 (12:36 +0300)]
Removed "using namespace std;" from sgconv.

9 years agoAllowed to build on Darwin.
Maxim Mamontov [Fri, 3 Oct 2014 09:35:49 +0000 (12:35 +0300)]
Allowed to build on Darwin.

9 years agoMinor change in stg's Makefile.
Maxim Mamontov [Fri, 3 Oct 2014 09:29:53 +0000 (12:29 +0300)]
Minor change in stg's Makefile.

9 years agoRemoved "using namespace std;" from rscriptd.
Maxim Mamontov [Fri, 3 Oct 2014 09:29:29 +0000 (12:29 +0300)]
Removed "using namespace std;" from rscriptd.

9 years agoAllowed to build on Darwin.
Maxim Mamontov [Fri, 3 Oct 2014 09:29:16 +0000 (12:29 +0300)]
Allowed to build on Darwin.

9 years agoRemoved "using namespace std;" from stargazer.
Maxim Mamontov [Fri, 3 Oct 2014 09:16:14 +0000 (12:16 +0300)]
Removed "using namespace std;" from stargazer.

9 years agoRemoved unused m_res class member.
Maxim Mamontov [Sun, 28 Sep 2014 15:44:45 +0000 (18:44 +0300)]
Removed unused m_res class member.

9 years agoRemoved old InitEncrypt function.
Maxim Mamontov [Sun, 28 Sep 2014 15:44:26 +0000 (18:44 +0300)]
Removed old InitEncrypt function.

9 years agoProper checks for libs.
Maxim Mamontov [Sun, 28 Sep 2014 15:35:20 +0000 (18:35 +0300)]
Proper checks for libs.

Conflicts:
projects/stargazer/build

9 years agoInitialize m_store in ctor.
Maxim Mamontov [Sat, 27 Sep 2014 22:47:22 +0000 (01:47 +0300)]
Initialize m_store in ctor.

9 years agoFixed pointer arithmentics in crypto.lib.
Maxim Mamontov [Sat, 27 Sep 2014 22:05:07 +0000 (01:05 +0300)]
Fixed pointer arithmentics in crypto.lib.

9 years agoAdded keepalive setter.
Maxim Mamontov [Sat, 27 Sep 2014 21:44:10 +0000 (00:44 +0300)]
Added keepalive setter.

9 years agoSolved some TODOs.
Maxim Mamontov [Tue, 23 Sep 2014 15:17:37 +0000 (18:17 +0300)]
Solved some TODOs.

Conflicts:
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h

9 years agoAdded long string for tests.
Maxim Mamontov [Mon, 22 Sep 2014 20:30:43 +0000 (23:30 +0300)]
Added long string for tests.

9 years agoFinished new implementation of sgconfig plugin.
Maxim Mamontov [Mon, 22 Sep 2014 20:28:31 +0000 (23:28 +0300)]
Finished new implementation of sgconfig plugin.

9 years agoBetter error reporting from plugin runner.
Maxim Mamontov [Mon, 22 Sep 2014 20:28:06 +0000 (23:28 +0300)]
Better error reporting from plugin runner.

9 years agoAdded missing include.
Maxim Mamontov [Mon, 22 Sep 2014 20:27:29 +0000 (23:27 +0300)]
Added missing include.

9 years agoFixes due to changes in API.
Maxim Mamontov [Mon, 22 Sep 2014 20:26:58 +0000 (23:26 +0300)]
Fixes due to changes in API.

Conflicts:
stglibs/srvconf.lib/parsers/chg_tariff.cpp
stglibs/srvconf.lib/parsers/get_tariff.cpp

9 years agoFixed BFStream work with large strings, allowed null put on last.
Maxim Mamontov [Mon, 22 Sep 2014 20:25:10 +0000 (23:25 +0300)]
Fixed BFStream work with large strings, allowed null put on last.

9 years agoImplemented parser registry.
Maxim Mamontov [Mon, 22 Sep 2014 12:02:22 +0000 (15:02 +0300)]
Implemented parser registry.

Conflicts:
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h

9 years agoAdded parser factories.
Maxim Mamontov [Mon, 22 Sep 2014 09:29:06 +0000 (12:29 +0300)]
Added parser factories.

Conflicts:
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h

9 years agoHandle failures in Conn ctor.
Maxim Mamontov [Sun, 21 Sep 2014 20:14:24 +0000 (23:14 +0300)]
Handle failures in Conn ctor.

9 years agoBrand new connection handling.
Maxim Mamontov [Sun, 21 Sep 2014 20:09:57 +0000 (23:09 +0300)]
Brand new connection handling.

Conflicts:
projects/stargazer/plugins/configuration/sgconfig/configproto.cpp
projects/stargazer/plugins/configuration/sgconfig/configproto.h

9 years agoRemoved rsconf.cpp.
Maxim Mamontov [Sun, 21 Sep 2014 20:08:43 +0000 (23:08 +0300)]
Removed rsconf.cpp.

Conflicts:
projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp

9 years agoUse netinet/in.h instead of linux/in.h.
Maxim Mamontov [Thu, 18 Sep 2014 19:44:10 +0000 (22:44 +0300)]
Use netinet/in.h instead of linux/in.h.

9 years agoAdjusted Makefile due to new source files.
Maxim Mamontov [Wed, 17 Sep 2014 06:38:10 +0000 (09:38 +0300)]
Adjusted Makefile due to new source files.

Conflicts:
projects/stargazer/plugins/configuration/sgconfig/Makefile

9 years agoFixed compilation errors.
Maxim Mamontov [Wed, 17 Sep 2014 06:37:58 +0000 (09:37 +0300)]
Fixed compilation errors.

9 years agoReduced scopes plus graceful connection shutdown.
Maxim Mamontov [Wed, 17 Sep 2014 06:37:29 +0000 (09:37 +0300)]
Reduced scopes plus graceful connection shutdown.

9 years agoAdded client connection class into sgconfig.
Maxim Mamontov [Wed, 17 Sep 2014 06:36:51 +0000 (09:36 +0300)]
Added client connection class into sgconfig.

9 years agoMinor changes in plugin interface.
Maxim Mamontov [Sun, 21 Sep 2014 20:09:22 +0000 (23:09 +0300)]
Minor changes in plugin interface.

9 years agoRemoved unused stuff.
Maxim Mamontov [Thu, 18 Sep 2014 20:06:51 +0000 (23:06 +0300)]
Removed unused stuff.

Conflicts:
projects/stargazer/plugins/configuration/sgconfig/configproto.cpp
projects/stargazer/plugins/configuration/sgconfig/parser.h
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h

9 years agoUser parser refactoring.
Maxim Mamontov [Thu, 18 Sep 2014 19:44:42 +0000 (22:44 +0300)]
User parser refactoring.

9 years agoAdded a function to check user existance.
Maxim Mamontov [Thu, 18 Sep 2014 19:43:34 +0000 (22:43 +0300)]
Added a function to check user existance.

9 years agoSplit sgconfig parsers into seaparate files.
Maxim Mamontov [Wed, 17 Sep 2014 06:36:24 +0000 (09:36 +0300)]
Split sgconfig parsers into seaparate files.

Conflicts:
projects/stargazer/plugins/configuration/sgconfig/parser.cpp
projects/stargazer/plugins/configuration/sgconfig/parser.h
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp
projects/stargazer/plugins/configuration/sgconfig/parser_user_info.h

9 years agoFixed compilation with new TRAFF_TYPE.
Maxim Mamontov [Wed, 17 Sep 2014 06:34:59 +0000 (09:34 +0300)]
Fixed compilation with new TRAFF_TYPE.

9 years agoMinor change in BFStream.
Maxim Mamontov [Wed, 17 Sep 2014 06:34:18 +0000 (09:34 +0300)]
Minor change in BFStream.

9 years agoAdded const qualifier.
Maxim Mamontov [Wed, 17 Sep 2014 06:33:12 +0000 (09:33 +0300)]
Added const qualifier.

9 years agoTraff type become an enumeration in scope of TARIFF.
Maxim Mamontov [Wed, 17 Sep 2014 06:32:40 +0000 (09:32 +0300)]
Traff type become an enumeration in scope of TARIFF.

9 years agoTARIFFS::GetTariffsData become constant.
Maxim Mamontov [Wed, 17 Sep 2014 06:31:49 +0000 (09:31 +0300)]
TARIFFS::GetTariffsData become constant.

9 years agoCOmpose CXXFLAGS for tests correctly.
Maxim Mamontov [Sat, 13 Sep 2014 22:05:25 +0000 (01:05 +0300)]
COmpose CXXFLAGS for tests correctly.

9 years agoHandle string for encryption properly.
Maxim Mamontov [Sat, 13 Sep 2014 22:01:44 +0000 (01:01 +0300)]
Handle string for encryption properly.

9 years agoStore parser answer in configproto.
Maxim Mamontov [Sat, 13 Sep 2014 22:01:14 +0000 (01:01 +0300)]
Store parser answer in configproto.

9 years agoGetPlugin should be extern "C".
Maxim Mamontov [Sat, 13 Sep 2014 22:00:44 +0000 (01:00 +0300)]
GetPlugin should be extern "C".

9 years agoFixed bfstream test compilation.
Maxim Mamontov [Sat, 13 Sep 2014 21:58:03 +0000 (00:58 +0300)]
Fixed bfstream test compilation.

9 years agoAdded special function to read/write all data (for TCP).
Maxim Mamontov [Sat, 13 Sep 2014 21:57:22 +0000 (00:57 +0300)]
Added special function to read/write all data (for TCP).

9 years agoHandle short string correctly in blowfish encription.
Maxim Mamontov [Sat, 13 Sep 2014 21:56:48 +0000 (00:56 +0300)]
Handle short string correctly in blowfish encription.

9 years agoHandle callback errors in bfstreams.
Maxim Mamontov [Sat, 13 Sep 2014 21:55:55 +0000 (00:55 +0300)]
Handle callback errors in bfstreams.

9 years agoSome minor changes in bf stream.
Maxim Mamontov [Sun, 27 Jul 2014 17:06:32 +0000 (20:06 +0300)]
Some minor changes in bf stream.

9 years agoFixed encryption in srvconf.lib
Maxim Mamontov [Thu, 26 Jun 2014 13:38:36 +0000 (16:38 +0300)]
Fixed encryption in srvconf.lib

9 years agoAlways think about \0 and block boundry during encryption.
Maxim Mamontov [Thu, 26 Jun 2014 13:24:21 +0000 (16:24 +0300)]
Always think about \0 and block boundry during encryption.

9 years agoAdded stream encryption/decryption tests.
Maxim Mamontov [Sun, 22 Jun 2014 11:41:06 +0000 (14:41 +0300)]
Added stream encryption/decryption tests.