8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 04:03:03 +01:00
Commit Graph

158 Commits

Author SHA1 Message Date
robocop
c6d8b0f46f Style. 2008-03-05 08:39:26 +00:00
alexpeshkoff
7137e2327c one more fix for CORE-1680 2008-03-03 13:52:08 +00:00
dimitr
042472b132 The merge is being fixed. 2008-01-16 13:20:24 +00:00
alexpeshkoff
0b1bb80670 Merge continued 2008-01-16 10:29:54 +00:00
dimitr
ae692fc319 The merge continued. 2008-01-16 10:17:51 +00:00
dimitr
4f902e63d0 Committed with conflicts by Alex's request. 2008-01-16 10:12:30 +00:00
alexpeshkoff
e488a74875 Fixed CORE-1680: gsec display only shows some first users when there are many users (>50) in security database 2008-01-09 09:21:47 +00:00
alexpeshkoff
8df71d2d89 Better fix for a problem, reported by Roman 2007-12-27 09:20:36 +00:00
alexpeshkoff
2dbb598a2c restored correct processing of QUIT command - thanks to Adriano 2007-10-22 09:09:07 +00:00
alexpeshkoff
957144131f removed unneeded code - thanks to Adriano 2007-10-11 11:17:08 +00:00
asfernandes
4161dc725c Misc 2007-10-10 02:06:20 +00:00
alexpeshkoff
7a26058087 Do not exit from gsec on errors in interactive mode 2007-10-08 13:42:09 +00:00
alexpeshkoff
ad13f1c22e Restored diagnostics from firebird pre-2.0 2007-09-26 17:54:53 +00:00
asfernandes
f75c4f33ef Remove warning 2007-06-14 15:14:55 +00:00
alexpeshkoff
07b7d249e9 misc 2007-05-21 12:10:48 +00:00
alexpeshkoff
4487203f21 Fixed CORE-1263 - gsec incorrectly processes some switches 2007-05-21 12:06:44 +00:00
alexpeshkoff
e26228270f 1. avoid code duplication defining arg_string
2. fix posix build
2007-04-27 09:20:17 +00:00
skidder
91fa2c7080 Fix MSVC8/Win32 build. IMO, these things where not nice:
- Target-dependent global typedefs
- Target-dependent stuff in COMMON .cpp files
2007-04-26 19:30:15 +00:00
alexpeshkoff
8274d3213d Fixed CORE-867 - all utilities now hide password from "ps" as soon as possible 2007-04-25 14:10:47 +00:00
alexpeshkoff
4e5adaf94c Fixed CORE-856 - Unable to set FName, MName, LName fields in security to blank 2007-04-23 12:57:39 +00:00
alexpeshkoff
6e735f7c53 Misc + gcc warning hunting 2007-04-09 16:15:29 +00:00
alexpeshkoff
1932c8f4e7 added switch -trusted to most of firebird utilities 2007-04-07 08:47:58 +00:00
robocop
e71a03261c This is the full SafeArg implementation for getting rid of the fixed parameter types in the messages db. Alas, the legacy messages (before FB2.1) can't be changed in number of arguments neither the types of arguments sent by callers of the MsgPrint family or the fb_msg_format functions can be changed because old clients know these legacy messages and would crash. 2007-03-28 04:20:36 +00:00
asfernandes
e2b5f28f5f Misc 2007-02-11 16:57:19 +00:00
robocop
409ff041dd Misc and replaced "IB" by "FB" where it made sense to me. 2007-02-11 09:04:54 +00:00
alexpeshkoff
f1151d822b Fix for threaded services. Thanks to Adriano. 2006-12-20 08:38:41 +00:00
alexpeshkoff
e0507b190a Avoid loosing initial error code 2006-12-18 09:30:40 +00:00
alexpeshkoff
513b6a52dd Fixed CORE-1057 2006-12-17 11:19:56 +00:00
alexpeshkoff
1a4652f01a Trusted authentication for windows 2006-12-08 18:38:15 +00:00
alexpeshkoff
028ab3c597 fixed AV related with SVC_TRMNTR in services 2006-07-27 14:24:09 +00:00
alexpeshkoff
c689bb8d85 ported fix from release - restored warning about too long password 2006-06-20 07:19:43 +00:00
robocop
9886d09647 Misc. 2006-05-20 04:22:07 +00:00
alexpeshkoff
b056a118b5 1. Avoid use of STL
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
alexpeshkoff
2d7f749456 ported changes from B2_0_Release 2006-04-24 10:08:16 +00:00
robocop
c5f2284b15 Style. 2006-04-06 08:18:53 +00:00
robocop
e5338ba1ed Only strcmp and strncmp have common names across all plartforms. Cater for differences in strcasecmp/stricmp and strncasecmp/strnicmp. 2006-03-25 07:08:00 +00:00
alexpeshkoff
fbde90f273 always fill internal_user_data with 0's on creation 2006-03-09 10:27:42 +00:00
robocop
1f84bac700 Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc. 2006-02-23 05:08:26 +00:00
alexpeshkoff
d1ee840d60 fixed gcc warning(s) 2006-01-16 16:49:15 +00:00
robocop
b67b0219ab Change from getenv to readenv. This is still getenv in Linux/UNIX but GetEnvironmentVariable in Windows. 2006-01-14 04:48:59 +00:00
alexpeshkoff
62a24d46e4 1. Moved data structures, written to database file, into ods.h.
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
dimitr
013f09d614 Misc. 2005-10-12 06:47:15 +00:00
alexpeshkoff
39b7d5c641 fixed a bug querying service state - thanks to Claudio 2005-10-03 08:53:15 +00:00
alexpeshkoff
40f650d020 reanimated -database switch in gsec 2005-09-30 16:10:18 +00:00
dimitr
efb3268658 Fixed wrong defines, thanks to Claudio. 2005-08-13 08:19:22 +00:00
dimitr
7a343b8162 Moved the Services API into the engine on threadable platforms. 2005-08-10 14:47:42 +00:00
robocop
94e04d3768 Misc. 2005-03-20 04:26:10 +00:00
alexpeshkoff
f4cd5a154f Changed name to security2.fdb 2005-02-24 12:24:38 +00:00
robocop
cb74ecd1f9 Fixing comments. 2004-12-22 08:50:47 +00:00
robocop
24742873ad fb_string.h is moved to common/classes. 2004-12-17 05:41:47 +00:00
alexpeshkoff
387e678cca applied Clumplet* classes to dpb where possible 2004-12-09 19:19:47 +00:00
robocop
bb170bd3b6 isc_interpret is fb_interpret again.
Please do a full rebuild.
2004-11-28 01:03:05 +00:00
robocop
67591daef1 Prevent garbage from being used. 2004-11-17 05:18:49 +00:00
alexpeshkoff
21849e714d style 2004-11-16 11:44:06 +00:00
alexpeshkoff
81457eefc7 misc cleanup 2004-11-14 18:07:26 +00:00
alexpeshkoff
fa3c6c521e dropped temp fix after bug with views was fixed by Dmitry Yemanov 2004-11-14 18:01:52 +00:00
skidder
f2597aee92 long is 64-bit datatype, but here encoded as 32-bit value. correct confusion 2004-11-11 04:57:19 +00:00
skidder
6fd58b5497 Fix 64-bit build 2004-11-11 01:34:41 +00:00
robocop
628b088d2c Treat string literals and string constants with more respect. 2004-11-10 04:26:45 +00:00
alexpeshkoff
3bd02ee852 security fix
1. Use SHA1 hash instead of ENC_crypt.
2. Disable any remote (non-embedded) access to security.fdb.
3. Use services in gsec and isc_*_user() fucntions.
    In gsec switch -database replaced with -server.
4. Protect from attempts to brut-force accounts/passwords.
2004-11-07 14:50:53 +00:00
skidder
3e26513b38 fb_interpret->isc_interpet, deprecate isc_interpete, clean interface a little bit 2004-10-25 03:53:03 +00:00
robocop
20b38f1aad Got rid of spurious cast. 2004-09-26 11:23:32 +00:00
robocop
7dcb66a250 When you call va_start, call va_end, don't assume it does nothing because some platforms don't have code for it!
Changed some sprintf to SNPRINTF. Work in progress WRT wrapper for this function.
2004-09-25 10:28:09 +00:00
robocop
e6cb17cac6 Vulnerability reported by Daniel Urban.
First step: reorganize code.
Please do a full rebuild after retrieving those changes.
2004-09-22 01:59:39 +00:00
robocop
7f03f6adbf Gsec should return the error code when used as a non-interactive utility.
Otherwise, calling it from a batch file doesn't give information if it failed or succeeded.
2004-09-15 07:32:07 +00:00
alexpeshkoff
c3db4aaa97 added (and used in sources) template to change and restore default pool 2004-08-30 18:11:08 +00:00
brodsom
76a2f98d90 -Put thread functions into thread class
-Comment SVC_PUTSPECIFIC_DATA
2004-07-03 02:33:46 +00:00
alexpeshkoff
1591a54e5e Thread cleanup:
1. Added macros to declare thread entrypoints
2. THD_mutex_* functions use Firebird::Mutex
3. Thread local storage use fb_tls.h
2004-06-08 13:41:08 +00:00
brodsom
75a0483d75 -Comment some common.h unused macros
-Replace VA_START macro with va_start function (it was already some places where it is not used)
2004-05-23 23:28:06 +00:00
brodsom
b76651a3ef -Convert *_thread_data macros to inlines. 2004-05-21 15:23:29 +00:00
brodsom
68cb86b274 - Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +00:00
brodsom
aa88f67e75 Macro cleaning 2004-05-17 00:21:46 +00:00
robocop
802f244ec1 Misc changes 2004-05-09 05:48:33 +00:00
brodsom
60d9d085a0 Macro cleaning 2004-05-03 21:43:56 +00:00
skidder
43cb0d1ce4 Y-Valve handle translation layer 2004-05-02 23:06:37 +00:00
brodsom
0daa189563 Removing ib_stdio.h 2004-04-28 22:36:29 +00:00
alexpeshkoff
7007d6f2a4 1. introduced Jrd and Ods namespaces
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 14:57:40 +00:00
robocop
f58c769c37 Cleanup. In geeky words:
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
skidder
25b969d1b7 Fix MSVC build 2004-03-01 04:57:43 +00:00
skidder
dc7aab8f9c Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed 2004-03-01 03:35:23 +00:00
robocop
5c3c8abd9a Big cleanup.
God have pity on platform maintainers.
I only can compile/test Win32; sorry, folks.
2004-02-20 06:43:27 +00:00
dimitr
45636b8c6f Removed handle leaks in the service manager. 2004-01-07 10:23:46 +00:00
robocop
16cbc204df Cleanup 2003-12-31 05:36:12 +00:00
skidder
e0012c92f4 Correction 2003-12-30 02:48:21 +00:00
robocop
ad0b5c4de3 General cleanup 2003-12-22 10:00:59 +00:00
skidder
db6eff1976 Linux-related Services API fixes. All Services API work on Linux CS now. 2003-12-14 22:29:47 +00:00
skidder
4e30dadd8b Enable gfix/gstat services API on classic builds. Rollback Blas' changes in this area 2003-12-14 04:44:58 +00:00
robocop
9fafc348bf const correctness
vars in scope
minimal interface cleanup
small bug fixes
2003-11-28 06:48:34 +00:00
brodsom
88a2611ed1 -Removing some unneeded headers (WIN_NT) or explaining why are needed 2003-11-16 16:17:38 +00:00
brodsom
27cbcdd73e -Removing some unneeded headers (WIN_NT) or explaining why are needed 2003-11-16 12:57:23 +00:00
brodsom
4285bc623c Removing gdsold.h and gds.h 2003-11-08 16:40:17 +00:00
robocop
cda707bd36 const correctness and other related changes 2003-11-01 10:26:43 +00:00
skidder
8a3ccb032c Return engine to buildable state on Linux after Alex bugfix 2003-10-30 22:18:52 +00:00
alexpeshkoff
1479423722 Forward - port:
Fixed non-registered bug - buggy application might add user with name,
containing non-printable characters, which couldn't be modified/deleted
using standard tools like gsec.
2003-10-30 16:46:08 +00:00
robocop
9ead7a37b4 const correctness
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00
brodsom
8dce5790c6 extern cleaning
removing underscores in macros
2003-10-03 01:01:40 +00:00
robocop
c931a674c2 Cleanup.
Hopefully harmless
It should fix the issue introduced with constness in gds__interprete for current applications.
2003-09-29 12:43:14 +00:00
robocop
484c6ec372 Cleanup, const correctness, variables in scope, etc.
Having done my best to merge everyone else's changes, I hope the tree can be build with whatever other tools != MSVC6.
2003-09-25 11:49:12 +00:00
robocop
fe6f929d54 Too trivial change 2003-09-16 08:34:08 +00:00
brodsom
29716469b2 -Add two empty lines at the end. 2003-09-16 08:00:22 +00:00