wtc%netscape.com
2f6a07086b
Fixed a memory leak on memory allocation error. r=mcgreer. (bug 129709)
...
git-svn-id: svn://10.0.0.236/trunk@116662 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 22:09:45 +00:00
wtc%netscape.com
4d2eddeffb
Bugzilla bug 131078: fixed compiler warnings. r=mcgreer.
...
git-svn-id: svn://10.0.0.236/trunk@116631 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 06:07:41 +00:00
relyea%netscape.com
2ce0acd912
When we free the clists, clear out our head pointer (don't keep pointing to
...
freed memory);
git-svn-id: svn://10.0.0.236/trunk@115548 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-01 02:13:42 +00:00
ian.mcgreer%sun.com
2da9c0987b
misdeclared function signature
...
git-svn-id: svn://10.0.0.236/trunk@115461 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-28 01:32:32 +00:00
ian.mcgreer%sun.com
1e75bfc90c
fix aix bustage
...
git-svn-id: svn://10.0.0.236/trunk@115450 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-27 23:17:12 +00:00
relyea%netscape.com
ce50f8dca2
Bug 120651: Memory leaks in PK11_GetCertList.
...
1) Fix leaks in error paths (bfind.c -- found by inspection).
2) Don't allocate hash table data out of the arena. PL_Hash grows and shrinks
the hash buckets as necessary. In arenas they will just grow.
3) Don't allocate temparary locks out of the global instance arena pool.
git-svn-id: svn://10.0.0.236/trunk@114367 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 02:26:47 +00:00
relyea%netscape.com
d7d46c347b
Fix memory leak in hash table keys. Hash tables stay around forever.
...
keys go into and out of the table. the old code allocated the keys from
the hash table's arena, so they would grow without bounds. Now the keys
are allocated from the heap, and get freed when they are expunged from the
table.
git-svn-id: svn://10.0.0.236/trunk@113738 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 02:42:08 +00:00
ian.mcgreer%sun.com
bfcd9cb632
some of the output in bug 123081 shows potential leaks around iterators, since the iterator is explicitly freed allocate it in its own block to avoid this
...
git-svn-id: svn://10.0.0.236/trunk@113719 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 22:08:12 +00:00
ian.mcgreer%sun.com
51a288738c
cleanup suggested by review by Nelson
...
git-svn-id: svn://10.0.0.236/trunk@113674 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 03:53:50 +00:00
relyea%netscape.com
0318f63324
Fix thread local storage leak.
...
git-svn-id: svn://10.0.0.236/trunk@113329 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:18:55 +00:00
ian.mcgreer%sun.com
b34e37b27f
fix core when token list is emptied (caused by switch to fips mode)
...
git-svn-id: svn://10.0.0.236/trunk@112585 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 17:39:29 +00:00
ian.mcgreer%sun.com
93942f465e
memory leak fixes
...
git-svn-id: svn://10.0.0.236/trunk@111574 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 15:37:42 +00:00
ian.mcgreer%sun.com
ecb8b3c386
detect hash collisions so that the caller can handle it
...
git-svn-id: svn://10.0.0.236/trunk@110397 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 20:23:07 +00:00
ian.mcgreer%sun.com
eaa53f5d5a
original intent for concurrent list iteration, fixes bug 114727. a better long-term solution is needing for traversing the high-level token lists.
...
git-svn-id: svn://10.0.0.236/trunk@110318 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 00:07:25 +00:00
ian.mcgreer%sun.com
70255b5440
check in error const
...
git-svn-id: svn://10.0.0.236/trunk@110164 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-10 19:14:32 +00:00
jpierre%netscape.com
f4059b3f77
Patch for 107323 - fix compiler warnings
...
git-svn-id: svn://10.0.0.236/trunk@109864 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 21:25:32 +00:00
ian.mcgreer%sun.com
54677fad6a
fix memory leaks
...
git-svn-id: svn://10.0.0.236/trunk@109238 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 19:34:08 +00:00
ian.mcgreer%sun.com
233b7897cf
land changes for handling temporary and cached certs in 3.4
...
* separate trust object from cert object
* move handling of cryptoki objects into libdev
* implement digest in libdev (for trust object indexing)
* fixes in cache implementation; connect cache to 3.4 certs
* implement CERT_NewTempCertificate via crypto context
git-svn-id: svn://10.0.0.236/trunk@109138 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 16:23:51 +00:00
ian.mcgreer%sun.com
5a3e326b12
fix unneeded lock release in list iteration
...
git-svn-id: svn://10.0.0.236/trunk@108317 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 19:36:43 +00:00
relyea%netscape.com
162c530b16
Land BOB_WORK_BRANCH unto the tip.
...
remove lots of depricated files.
move some files to appropriate directories (pcertdb *_rand
associated headers to soft token, for instance)
rename several stan files which had the same name as other nss files.
remove depricated functions.
git-svn-id: svn://10.0.0.236/trunk@107628 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:15:51 +00:00
ian.mcgreer%sun.com
40e21c8720
add ability to notify user that chain is incomplete
...
git-svn-id: svn://10.0.0.236/trunk@105630 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 15:48:09 +00:00
ian.mcgreer%sun.com
4577fd5dbb
fix iteration for empty list
...
git-svn-id: svn://10.0.0.236/trunk@105627 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 14:37:48 +00:00
ian.mcgreer%sun.com
1c39fe046e
put the sort function in the header
...
git-svn-id: svn://10.0.0.236/trunk@105419 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-15 17:13:31 +00:00
ian.mcgreer%sun.com
2c439f174f
add ordering capability to the list
...
git-svn-id: svn://10.0.0.236/trunk@105418 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-15 16:50:01 +00:00
ian.mcgreer%sun.com
b65474fbb3
implement hash keyed by NSSItem; change list method names to be like hash method names; fix 99214, arena mark lists broken
...
git-svn-id: svn://10.0.0.236/trunk@104806 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-08 19:26:02 +00:00
ian.mcgreer%sun.com
577a89b492
fix build error
...
git-svn-id: svn://10.0.0.236/trunk@104535 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-03 14:07:29 +00:00
ian.mcgreer%sun.com
7d1e9b7860
check in the nssItem_ interface
...
git-svn-id: svn://10.0.0.236/trunk@103725 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 20:48:51 +00:00
relyea%netscape.com
e14e336a0e
Fix Linux warnings.
...
git-svn-id: svn://10.0.0.236/trunk@103362 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 22:02:46 +00:00
ian.mcgreer%sun.com
6e9433a3f4
some cleanup in the list code
...
git-svn-id: svn://10.0.0.236/trunk@103334 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 20:33:27 +00:00
ian.mcgreer%sun.com
c95b1f54fe
checkin of threadsafe hashtable; copied from ckfw/hash.c but using NSS types
...
git-svn-id: svn://10.0.0.236/trunk@103241 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:28:36 +00:00
mcgreer%netscape.com
24b949d0b3
initial checkin of threadsafe list
...
git-svn-id: svn://10.0.0.236/trunk@103221 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 20:20:06 +00:00
mcgreer%netscape.com
bf22305f42
first cut at password handling. todo: implement transaction-based passwords (at a higher level?)
...
git-svn-id: svn://10.0.0.236/trunk@103213 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 19:08:32 +00:00
wtc%netscape.com
9e6c133c84
Bugzilla bug #63768 : removed references to the obsolete PURE_LIBRARY,
...
HAVE_PURIFY etc. make variables in NSS files. Reviewed by nelson Bolyard.
Modified Files:
cmd/platrules.mk cmd/crmf-cgi/config.mk cmd/crmftest/config.mk
cmd/lib/config.mk cmd/zlib/config.mk lib/base/config.mk
lib/certdb/config.mk lib/certhigh/config.mk lib/ckfw/config.mk
lib/crmf/config.mk lib/cryptohi/config.mk
lib/fortcrypt/swfort/config.mk lib/freebl/config.mk
lib/jar/config.mk lib/nss/config.mk lib/pk11wrap/config.mk
lib/pkcs12/config.mk lib/pkcs7/config.mk lib/smime/config.mk
lib/softoken/config.mk lib/ssl/config.mk lib/util/config.mk
git-svn-id: svn://10.0.0.236/trunk@86029 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 01:49:57 +00:00
wtc%netscape.com
7374eada86
Bugzilla bug #67122 : put PR_CALLBACK after the return type in function
...
declarations. This is the order required by OS/2 compilers. Thanks to
Javier Pedemonte <pedemont@us.ibm.com> for the patch.
Modified files: hashops.c, tracker.c, certt.h, oid.c.
git-svn-id: svn://10.0.0.236/trunk@85833 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 18:01:53 +00:00
larryh%netscape.com
18549422d1
Bugzilla: 64132. NSS lock instrumentation
...
git-svn-id: svn://10.0.0.236/trunk@84300 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-03 19:51:22 +00:00
relyea%netscape.com
c47f3ffafd
Changes to make base code compile in the current nss environment. This is so
...
the pkcs framework can use it.
git-svn-id: svn://10.0.0.236/trunk@78290 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-06 22:11:57 +00:00
roeber%netscape.com
4f60076af4
Detect at runtime when we're running with NSPR 1 and switch the thread-private-data calls accordingly. This lets our pkcs#11 modules be loaded into Communicator.
...
git-svn-id: svn://10.0.0.236/trunk@70404 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 20:19:24 +00:00
dougt%netscape.com
1931899568
Minor changes to fix mac build bustages.
...
git-svn-id: svn://10.0.0.236/trunk@69424 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 18:43:28 +00:00
roeber%netscape.com
f85ed5e665
I missed a couple usages of nssUTF8_Size when its signature changed.
...
Also made a pedantic check #ifdef PEDANTIC.
git-svn-id: svn://10.0.0.236/trunk@66462 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 21:24:57 +00:00
roeber%netscape.com
833aaa0bee
Free from the beginning of the real block pointer, not the user's pointer.
...
git-svn-id: svn://10.0.0.236/trunk@66461 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 21:23:13 +00:00
relyea%netscape.com
a4d4d45374
Initial NSS Open Source checkin
...
git-svn-id: svn://10.0.0.236/trunk@64788 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 20:13:40 +00:00