533 Commits

Author SHA1 Message Date
mcs%netscape.com
1cd7eb9a68 Fix 175900 - read overrun in ldap resolve code.
Note: this fixes code we do not compile right now.


git-svn-id: svn://10.0.0.236/trunk@140161 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 21:12:03 +00:00
mcs%netscape.com
74319d5e50 Follow up fix for 126462 - Occurences of uninitialized variables being
used before being set (in directory/c-sdk).
	Fix debug build.


git-svn-id: svn://10.0.0.236/trunk@140160 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 20:44:58 +00:00
mcs%netscape.com
e512518762 Fix 144241 - possible C SDK leak or delayed free().
Note: unconfirmed fix; I do not have a test program for this bug.


git-svn-id: svn://10.0.0.236/trunk@140158 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 20:05:24 +00:00
mcs%netscape.com
5076ab7942 Fix 126462 - Occurences of uninitialized variables being used
before being set (in directory/c-sdk).


git-svn-id: svn://10.0.0.236/trunk@140157 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 19:59:05 +00:00
mcs%netscape.com
952ba976ed Fix 198972 - LDAP tools do not build on AIX.
Link with iconv library on AIX.


git-svn-id: svn://10.0.0.236/trunk@140156 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 19:49:11 +00:00
dmose%mozilla.org
7f5981ae11 Don't use strcmp() just to check for a zero-length string (bug 58221). Patch by timeless@myrealbox.com, r=dmose@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@140031 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 03:19:05 +00:00
mcs%netscape.com
8d80f1fd4c Fix 189089 - port nspr w32 now.c fix to directory.
See bug # 188396 - NSPR should not use ftime on windows.
	This fixes a potential Year 2038 issue.


git-svn-id: svn://10.0.0.236/trunk@139942 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 16:41:42 +00:00
mcs%netscape.com
b9b47058f3 Fix 183385 - eliminate references to NSS key/cert/module files.
The LDAP tools code no longer has any knowledge of the NSS
	file names; the certpath2keypath() function has been deleted
	and we now simply use the certdbpath as keydbpath when it is
	provided (it makes no difference in the end). But note that
	because we need to maintain backwards compatibility, the
	libssldap code used by the ldapssl_.*_init() functions still
	knows the default name of the NSS module file (secmod.db),
	and the code also relies on the fact that the suffix for the
	key and cert files is ".db" and that the first letter in the
	main part of the name is either 'c' or 'k'.
Also fixed a bug that caused the module file name specified on
	the LDAP tools command line (-m name) to be ignored.
The ldapsearch and ldapcmp tools now exit with LDAP_NO_MEMORY
	if an LDIF fragment can't be constructed.
Also fixed some issues reported by lint:
	Return values that were ignored.
	Make more functions and global variables static.
	Add /*ARGSUSED*/ and similar lint-friendly comments.


git-svn-id: svn://10.0.0.236/trunk@139935 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 16:00:34 +00:00
mcs%netscape.com
8b4978716e Fix 183798 - crash if charset conversion fails.
git-svn-id: svn://10.0.0.236/trunk@139852 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 15:46:41 +00:00
mcs%netscape.com
626bd1a0fd Fix 195441 - command line tools: :< in LDIF fails to import file
contents correctly.
Also removed a useless call to feof().


git-svn-id: svn://10.0.0.236/trunk@139841 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 14:56:59 +00:00
bzbarsky%mit.edu
cb5f836162 Fix some spelling errors in comments. Bug 106386, patch by Nicholas Bebout
<nb@ipnode.info>, r=doron, sr=dmose


git-svn-id: svn://10.0.0.236/trunk@139745 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 04:35:08 +00:00
seawood%netscape.com
88a13bdac8 Add mingw support.
Bug #134113 r=mcs sr=dmose


git-svn-id: svn://10.0.0.236/trunk@139107 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-07 21:12:09 +00:00
timeless%mozdev.org
637f19c2b0 Bug 152700 compiler warnings caused by 119380 checkin
patch by dmose r=timeless sr=bryner


git-svn-id: svn://10.0.0.236/trunk@138678 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 03:18:58 +00:00
kairo%kairo.at
de1f7b5269 bug 194924 - localeVersion update for 1.4a, r=rchen, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@138565 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 00:05:44 +00:00
seawood%netscape.com
9dfd61d929 Default to using absolute symlinks when building on Darwin.
Bug #193164 r=ccarlen


git-svn-id: svn://10.0.0.236/trunk@138298 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 16:58:47 +00:00
timeless%mozdev.org
4c3673a823 Bug 191717 `PRUint8 * array' might be used uninitialized in this function
r=dmose sr=alecf


git-svn-id: svn://10.0.0.236/trunk@138270 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 04:41:12 +00:00
asa%mozilla.org
142b3b53a7 checkin for dmose. fix bustage for --enable-ldap-extensions bug 189691 r+sr=dmose a=asa
git-svn-id: svn://10.0.0.236/trunk@136932 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-24 09:57:29 +00:00
dbaron%dbaron.org
0653a5fa91 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135993 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:35:36 +00:00
kairo%kairo.at
e6ced14fde change all localeVersion strings, as well as brand.dtd/region.dtd to 1.3b; bug 185698, r=tao, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@135834 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-03 19:57:47 +00:00
miodrag%netscape.com
25b852aa24 Incorporated fix to printEntryStart() by Jeff.Gay@gfnews.net
git-svn-id: svn://10.0.0.236/trunk@135794 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-02 22:04:46 +00:00
seawood%netscape.com
f365ac16a3 Hardcode the use of Sun's ld & ranlib since they are the only ones supported.
Bug #181382 r=dmose


git-svn-id: svn://10.0.0.236/trunk@135426 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 21:44:49 +00:00
djani%netscape.com
72066a575b Bug 179133: Now we support cert and key DBs with prefixes in the names also, just like ldapssl_pkcs_init() does. Now all of the code calls NSS_Initialize() instead of NSS_Init().
git-svn-id: svn://10.0.0.236/trunk@134802 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 19:10:17 +00:00
mcs%netscape.com
dd4c8f8139 Fix bug # 177756 - eliminate dependency on libNLS.
If HAVE_LIBNLS is not defined, OS functions (iconv and Win32
	native APIs) are used for character set conversion of command
	line arguments.
Fix bug # 177766 - LDAP tools should reject second -h argument.
	A second -p argument is also rejected.
Fix bug # 159139 - HP/UX: LDAP command line tools do no charset conversion.
	Removed special case makefile rules for convutf8.cpp on HP/UX.


git-svn-id: svn://10.0.0.236/trunk@134797 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 17:21:55 +00:00
mcs%netscape.com
cc5865f4c9 Fix bug # 177771 - libssldap: keyfile password should be optional.
If a NULL keypasswd value is passed to ldapssl_enable_clientauth()
		then it is assumed that the application has already unlocked
		the key DB or has installed its own GetPassword callback.
	Also improved some error reporting.


git-svn-id: svn://10.0.0.236/trunk@134796 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 17:11:20 +00:00
miodrag%netscape.com
c4df1d005f Removed unnecessary code, updated javadoc
git-svn-id: svn://10.0.0.236/trunk@134744 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 01:35:57 +00:00
miodrag%netscape.com
b0070e1509 Removed two trailing ^M
git-svn-id: svn://10.0.0.236/trunk@134741 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 01:04:19 +00:00
miodrag%netscape.com
1e4d37b68e Removed in sdk 4.17
git-svn-id: svn://10.0.0.236/trunk@134658 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 01:19:09 +00:00
miodrag%netscape.com
9547a3050f Minor corrections
git-svn-id: svn://10.0.0.236/trunk@134656 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 00:43:13 +00:00
miodrag%netscape.com
f33ff5c692 Added JAVA_VERSION variable, .CHECK_VARS target, better support for different java versions
git-svn-id: svn://10.0.0.236/trunk@134655 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 00:42:35 +00:00
miodrag%netscape.com
fa2abcd100 Updtates for LDAPJDK 4.17
git-svn-id: svn://10.0.0.236/trunk@134654 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 00:38:20 +00:00
miodrag%netscape.com
a1ee7a06f7 A minor change for javadoc
git-svn-id: svn://10.0.0.236/trunk@134653 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 00:36:21 +00:00
miodrag%netscape.com
6d40d91740 Added jss32_stub.jar
git-svn-id: svn://10.0.0.236/trunk@134652 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 00:33:56 +00:00
miodrag%netscape.com
5413a51b98 A fix for jdk1.4 javadoc
git-svn-id: svn://10.0.0.236/trunk@134651 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 00:26:50 +00:00
seawood%netscape.com
ae0f08c6b0 Fix egrep syntax.
git-svn-id: svn://10.0.0.236/trunk@134365 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-23 09:59:07 +00:00
seawood%netscape.com
f7a5f8eec0 Properly detect OS_ARCH when building on Win32 ME.
Bug #180822 r=dmose,wtc


git-svn-id: svn://10.0.0.236/trunk@134362 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-23 06:06:12 +00:00
bzbarsky%mit.edu
9a29d832d6 kill off some nsISupportsArray and fix a potential leak. Bug 177400,
r=dmose, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@133939 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 02:35:20 +00:00
mcs%netscape.com
6e31d32214 Fix bug # 177775 - libprldap: NSPR error is sometimes lost.
git-svn-id: svn://10.0.0.236/trunk@133925 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 21:03:19 +00:00
mcs%netscape.com
6107849741 Fix bug # 177778 - ldap_set_option( NULL, ... ) resets ldap_debug to zero.
git-svn-id: svn://10.0.0.236/trunk@133924 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 21:01:43 +00:00
mcs%netscape.com
62ecca7ba7 Use a name shorter than 32 chars. for the C LDAP API Internet Draft.
git-svn-id: svn://10.0.0.236/trunk@133923 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 20:58:29 +00:00
mcs%netscape.com
2967118f83 Fix bug # 163534 - remove Netscape Confidential and Proprietary marker
from errormap.c.


git-svn-id: svn://10.0.0.236/trunk@133920 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 20:18:50 +00:00
mcs%netscape.com
4a841edc41 Fix bug # 38012 - 64bit issues within CRC-32 code.
Define 32-bit integral types in portable.h (nsldapi_int_32 and
	nsldapi_uint_32) and use them in the memcache crc32_convert()
	function.


git-svn-id: svn://10.0.0.236/trunk@133919 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 20:15:53 +00:00
mcs%netscape.com
777286fdd1 Fix bug # 179951 - libprldap "cross thread" memory leak.
The prldap_tsd_destroy() function (which is called when a
	thread exits) was not freeing the information contained within
	the PRLDAP_ErrorInfo structure. Added prldap_free_errorinfo()
	and a way to determine if that thread-private data looks like
	error information (the plei_magic field). At the moment, only
	one kind of thread-private data is stored anyway (the error
	information).

	The prldap_allocate_map() function, which is called when a new
	LDAP session is created, was blindly setting the thread-private
	error information pointer to NULL. But if a different thread
	created or used an LDAP session than called ldap_unbind(), old
	error information may have been left in memory. Now the error
	info. pointer is reset and reused, which was the original goal.


git-svn-id: svn://10.0.0.236/trunk@133859 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 23:07:27 +00:00
mcs%netscape.com
5d58acb600 Fix bug # 175727 - strict aliasing bugs in LDAP C SDK.
Avoid casts like (void**)&pRes; use temporary local variables
	instead.


git-svn-id: svn://10.0.0.236/trunk@132897 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-02 02:29:37 +00:00
mcs%netscape.com
17b2cd625b Fix bug # 169975 - LDAP memory cache accesses response
list w/o locking mutex.


git-svn-id: svn://10.0.0.236/trunk@132824 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 19:57:09 +00:00
mcs%netscape.com
21a4001728 Fix bug # 166189 - Segmentation fault on invalid filter string.
Check that a sequence of set has been created before using
	it inside ber_put_seqorset().


git-svn-id: svn://10.0.0.236/trunk@132819 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 15:23:29 +00:00
kairo%kairo.at
3e1e257124 Bug 175853, Update localeVersion strings for 1.2 final - and do it correctly, r=jbetak, sr=bzbarsky, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@132698 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 12:41:38 +00:00
leaf%mozilla.org
e19463c6db update localeVersion for 1.2b, a=asa
git-svn-id: svn://10.0.0.236/trunk@132087 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-16 17:51:38 +00:00
dbaron%fas.harvard.edu
0aaa1704e7 Porting fixes for gcc trunk (to become 3.3): Eliminate C-only option from CXXFLAGS. Don't use pasting for things that are still separate tokens. Don't pass objects of non-POD type through |...|. Don't include strstream.h, which isn't used anymore anyway. b=170250 r=bbaetz sr=alecf
git-svn-id: svn://10.0.0.236/trunk@130797 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 14:18:27 +00:00
peterv%netscape.com
80930addc5 Fix for bug 86000 (convert LDAP XPCOM SDK to use AUTF8String). r=dmose, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@129251 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-11 11:22:41 +00:00
leaf%mozilla.org
529fb984ee update localeVersion to 1.2a, a=asa
git-svn-id: svn://10.0.0.236/trunk@129019 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 01:01:49 +00:00