14 Commits

Author SHA1 Message Date
wtchang%redhat.com
22a3ee42b4 Bugzilla Bug 320336: improved the comments for SECITEM_AllocItem in
secitem.h.  Made SECITEM_AllocItem fail (return NULL) if the allocation of
the buffer fails, as documented. r=nelsonb.
Modified files: secitem.c secitem.h


git-svn-id: svn://10.0.0.236/trunk@198213 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-22 22:24:34 +00:00
nelson%bolyard.com
276d240e0c Backout the last change, undoing the fix for bug 320336 and bug 333405.
git-svn-id: svn://10.0.0.236/trunk@195336 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-25 04:39:24 +00:00
wtchang%redhat.com
61120f7730 Bugzilla Bug 320336: SECITEM_AllocItem should return a NULL pointer if the
allocation of its 'data' buffer fails. r=nelson.  This checkin fixed bug
333405 as a byproduct.
Modified files: secitem.c secitem.h


git-svn-id: svn://10.0.0.236/trunk@195304 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-24 22:50:13 +00:00
gerv%gerv.net
43cb9e1492 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155484 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-25 15:03:26 +00:00
wchang0222%aol.com
3881a53ae1 Bugzilla bug 227296: fixed the bug that NSS_CMSAttribute_AddValue adds the
address of a stack variable to the attr->values array.  Added a new
function SECITEM_ArenaDupItem.  r=nelsonb.
Modified Files:
	nss/nss.def util/secitem.c util/secitem.h smime/cmsarray.c
	smime/cmsattr.c


git-svn-id: svn://10.0.0.236/trunk@150095 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-06 01:16:50 +00:00
nelsonb%netscape.com
d95c50f586 Harden SECITEM_CompareItem against NULL pointers.
git-svn-id: svn://10.0.0.236/trunk@143412 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-07 03:05:49 +00:00
nelsonb%netscape.com
2fd5aafdb4 Rewrite SECITEM_ItemsAreEqual to be faster when item lengths are not
equal and to not crash if an item contains a NULL data pointer.


git-svn-id: svn://10.0.0.236/trunk@143386 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-06 04:51:26 +00:00
relyea%netscape.com
e75b9bf3b7 Copy the type value as well as the rest.
git-svn-id: svn://10.0.0.236/trunk@123954 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 21:57:27 +00:00
ian.mcgreer%sun.com
202313e65b bug 125359, by default the ASN.1 en/decoder should treat all numbers as signed. But many source/target items desire unsigned integers (specifically, bignums in the crypto stuff), so implement an siUnsignedInteger type which notifies the en/decoder to handle the conversion.
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@115170 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 22:41:44 +00:00
relyea%netscape.com
dd1d27c432 Clean up compilier warnings on Solaris and Linux, most particularly:
1) Implicit declaration of function.
2) Possibly unitialized variables.

These warnings have indicated some real problems in the code, so many changes
are not just to silence the warnings, but to fix the problems. Others were
inocuous, but the warnings were silenced to reduce the noise.


git-svn-id: svn://10.0.0.236/trunk@109938 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:36:25 +00:00
relyea%netscape.com
1407e64cce Build OID hash table using PL_Hash rather then the dbm hash code.
git-svn-id: svn://10.0.0.236/trunk@107120 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 21:50:09 +00:00
relyea%netscape.com
c774d09663 Fix compiler warnings on HP, AIX, Linux, and Solaris.
git-svn-id: svn://10.0.0.236/trunk@103367 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 22:12:23 +00:00
repka%netscape.com
238efb4902 Removed BTOA_ConvertItemToAscii (now defined in nssb64e.c, using new
base64 encoder implementation).


git-svn-id: svn://10.0.0.236/trunk@65448 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-06 22:38:27 +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