Граф коммитов

4389 Коммитов

Автор SHA1 Сообщение Дата
nelsonb%netscape.com 2ab3bc3979 CERT_EncodeGeneralName and CERT_DecodeGeneralName contain large switch
statements that repeat code for every case.  This patch factors out that
common code from the cases, making the switches much smaller and reducing
bloat.
2003-06-21 08:10:07 +00:00
nelsonb%netscape.com 66f40f98bd Cleanup CERT_GetGeneralNameByType so that it detects when it has
encountered a general name of a type that it doesn't recognize, and
so that it properly casts the return value to be of the right type.
2003-06-21 07:07:47 +00:00
nelsonb%netscape.com 9b63114ba0 The general name code uses arenas, which is good, but it never marks
and releases space in the arenas, so the arenas just grow and grow
until the test is completely over.  This patch adds comments showing
where mark and release calls could (and probably should) be added.
It also changes CERT_CopyGeneralName to have only two exit paths,
two return statements, in preparation for the eventual use of mark and
release.
2003-06-21 06:44:43 +00:00
nelsonb%netscape.com 1042ec6f88 a) Add more missing null pointer tests that I discovered. Bug 208649.
b) change all PORT_*Alloc calls that allocate new structs or arrays of
same to use the PORT_*New* macros instead.
c) ifdef out some dead functions that are rife with failure to detect
allocation failures.
2003-06-21 05:23:07 +00:00
relyea%netscape.com 663b108222 Fix deadlock bugscape 46733 2003-06-20 23:34:46 +00:00
bishakhabanerjee%netscape.com 9948f8316d sigh, another time 2003-06-20 23:24:11 +00:00
bishakhabanerjee%netscape.com 4d3b8d3282 one more time, trying to make link clickable 2003-06-20 18:36:57 +00:00
nelsonb%netscape.com a98e4fc078 Declare src argument to SEC_ASN1DecodeItem to be const. 2003-06-20 01:52:19 +00:00
brendan%mozilla.org e66f3155de Don't include private and unnecessary js header files. 2003-06-19 23:13:59 +00:00
bishakhabanerjee%netscape.com bc5d5ce9dc echo out RESULTDIRURL; r=wtc 2003-06-19 23:04:25 +00:00
bishakhabanerjee%netscape.com 3d71f8851a made RESULTDIRURL clickable link; r=wtc 2003-06-19 23:03:59 +00:00
nelsonb%netscape.com 1b06e46683 Carry Wan-Teh's fix for bug 208996 forward to trunk. 2003-06-19 03:48:19 +00:00
nelsonb%netscape.com a4f1b04288 Fix numerous more potential NULL pointer deref crashes. Bug 208038 2003-06-19 01:08:53 +00:00
bishakhabanerjee%netscape.com 05dc77c485 checking in version 1.60 with additional space 2003-06-18 19:13:11 +00:00
neil%parkwaycc.co.uk 6741a52ed1 Bug 209661 remove unnecessary NS_LITERAL_CSTRING( with ).get() r=jag sr=alecf 2003-06-18 14:31:45 +00:00
bishakhabanerjee%netscape.com 1f57ddfe70 backing out my recent changes - some platforms showing tests failed 2003-06-18 08:13:07 +00:00
bishakhabanerjee%netscape.com 709b88a2cb had to put in netscape specific unix base dir as well 2003-06-18 07:11:15 +00:00
bishakhabanerjee%netscape.com 06eeeca399 put URL specific stuff inside nscp specific loop 2003-06-18 06:02:28 +00:00
nelsonb%netscape.com 40399ce6d5 Further refinements to the Name Constraints checking logic, to make it
more compliant with RFC 3280.  Bug 208047.
2003-06-18 04:32:44 +00:00
nelsonb%netscape.com 9c76888937 Move declarations of NSS private functions for general names from cert.h
to genname.h, and eliminate declarations from cert.h that were also
in genname.h.  If we ever decide to make any of these functions public,
we can move their declarations back to cert.h.
2003-06-18 00:38:12 +00:00
nelsonb%netscape.com bbf159fcc1 Make CERT_DecodeAVAValue take const inputs and detect NULL pointers.
Rewrite CERT_CompareAVA to compare the type OIDs first, and then if
the values are not of the same encoding, convert them before comparing.
Also, do comparisons of printableString encoding properly.  Bug 208649.
2003-06-17 23:44:14 +00:00
kaie%netscape.com 25fb5c7a14 b=209082 Certificate viewer is broken
r=danm sr=jst
2003-06-17 23:16:23 +00:00
bishakhabanerjee%netscape.com ed88f342da modified header to print link of resultsdir to browser log 2003-06-17 21:21:33 +00:00
caillon%returnzero.com 2df173e9c8 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com
2003-06-13 20:10:01 +00:00
kaie%netscape.com 5cb8507581 b=209168 Mozilla Mail S/Mime instructs NSS to import the wrong certs
r=relyea sr=kin
2003-06-12 20:03:40 +00:00
nelsonb%netscape.com 4bc3e0e70c const. Got it? Const! 2003-06-11 23:12:38 +00:00
seawood%netscape.com b28ce0a530 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev 2003-06-10 20:12:33 +00:00
seawood%netscape.com 53d53dd6cb Removing old cfm build files. r=macdev 2003-06-10 19:03:46 +00:00
nelsonb%netscape.com 786e999bda Harden SECITEM_CompareItem against NULL pointers. 2003-06-07 03:05:49 +00:00
seawood%netscape.com 1a61e5528b Add echo-requires-recursive rule to get a full list of tree's dependencies 2003-06-06 19:21:57 +00:00
nelsonb%netscape.com 546ef9889f Rewrite of cert_CompareNameWithConstraints and the static functions it
calls, to make it conform with RFC 3280.  Bug 208047.
2003-06-06 09:12:21 +00:00
nelsonb%netscape.com 3245c4d36c Rewrite SECITEM_ItemsAreEqual to be faster when item lengths are not
equal and to not crash if an item contains a NULL data pointer.
2003-06-06 04:51:26 +00:00
nelsonb%netscape.com 95ac53508c Add new OIDs for directory name attribute types. Bug 207711. 2003-06-06 04:48:45 +00:00
nelsonb%netscape.com 216592c31b Augment and centralize the list of known cert name attribute types.
Bug 207711.
2003-06-06 01:17:04 +00:00
nelsonb%netscape.com f4f2e9f053 Eliminate more NULL pointer dereferences. Bug 207740. 2003-06-05 04:59:38 +00:00
wtc%netscape.com 446bef339f Bug 208343: removed two Baltimore root certificates.
Modified Files: certdata.c certdata.txt
2003-06-05 00:53:27 +00:00
wtc%netscape.com 9223dbd69d Temporarily disabled the fix for bug 208177 so that we can debug bug
167825.
2003-06-04 14:49:13 +00:00
kairo%kairo.at 0b93c73eee bug 207642 - update localeVersion for 1.5a - r=rchen, sr=blizzard 2003-06-04 11:11:19 +00:00
nelsonb%netscape.com 9eb66804cf PORT_Alloc and PORT_ZAlloc always allocate at least one byte, even if
the caller requests zero bytes.  This patch makes PORT_ArenaAlloc
and PORT_ArenaZAlloc do the same.
2003-06-03 23:24:31 +00:00
wtc%netscape.com 196f5f2abe Bug 208177: Our HP-UX build machine has a strange problem. If a 64-bit
PA-RISC executable calls getcwd() in a network-mounted directory, it fails
with ENOENT.  Since nsinstall calls getcwd(), this breaks our 64-bit HP-UX
nightly builds.  We worked around this problem by building nsinstall as a
32-bit PA-RISC executable for 64-bit PA-RISC builds.  This checkin added a
new make variable INTERNAL_TOOLS which can be set in makefiles whose target
is a tool used only during the build.  Such a tool can be built differently
from NSS proper as long as the tool runs on the build machine.
Modified Files: HP-UXB.11.mk nsinstall/Makefile
2003-06-03 23:14:03 +00:00
ian.mcgreer%sun.com 115ea01683 bug 156256, removed unused Stan files with long names 2003-06-03 20:59:15 +00:00
wtc%netscape.com 9ad0b80e3a Bug 207379: added instructions for removing a builtin root CA cert from
NSS.
2003-06-02 23:16:51 +00:00
nelsonb%netscape.com ba44a2b994 Back out rev 1.27, which turned verbose mode on by default for debugging
QA test script failures that only occurred on tinderbox machines.
bug 207313 is now fixed.
2003-06-02 20:39:48 +00:00
wtc%netscape.com a2aaa0dd1a Bug 204555: Eliminated other potential crashes in code related to
certificate names.  r=wtc.  (The patch is Nelson's.)
2003-06-02 18:10:43 +00:00
nelsonb%netscape.com d8286a7935 This patch does two things, one large and one small. Bug 207313.
1, It uses two new symbols SSOCK_FD and STDIN_FD instead of 0 and 1 to
reference members of the poll set array.  I just could never remember whether
pollset[0] was the socket or was stdin.  Now I don't have to remember.
This changes a lot of lines, but is very simple.
2. It implementa a new flag clientSpeaksFirst, set with the -f option.
The only effect of this flag is whether the value of
pollset[SSOCK_FD].in_flags is initially zero (if true) or PR_POLL_READ (if false).  Note that pollset[SSOCK_FD].in_flags is set to PR_POLL_READ after
each succesful write to the socket.
2003-06-01 03:01:39 +00:00
wtc%netscape.com 1a0ee426a9 Bug 206926: Added the makefile rule to export PRIVATE_EXPORTS headers. 2003-05-31 00:12:18 +00:00
wtc%netscape.com ce11300ca6 Bug 206926: 1. Undo the changes to secrng.h, pqgutil.h, swfutl.c,
unix_rand.c, and win_rand.c. 2. Make secrng.h and pqgutil.h private.
3. Public header pk11pqg.h can't include private header pqgutil.h.
4. Many files don't need to include secrng.h.  A few don't need to include
pqgutil.h.  5. Remove duplicate declarations of PQG_DestroyParams and
PQG_DestroyVerify from blapi.h.
2003-05-30 23:31:32 +00:00
nelsonb%netscape.com cc8d6b1b9f Eliminate TCP connection reset errors that occur when server requires
client auth and SSL3 client doesn't authenticate.  The fix is to coalesce
the SSL3 no_certificate alert record with the following records (e.g.
client_key_exchange handshake, change_cipher_spec and finished handshake).
Fix bugs 207313 and 118668.
2003-05-30 23:22:39 +00:00
kirk.erickson%sun.com 52f15c0d08 Resolves bug 206971 - selfserv should OptimizeSpeed (use NSS_Initialize).
Both selfserv and strsclnt no longer OptimizeSpace.  Moved SECMOD_DB
defines from nssinit.c to nss.h, make it availble for public use with
NSS_Initialize().
2003-05-30 17:25:13 +00:00
nelsonb%netscape.com 93542dbdb9 Back out rev 1.28 to test some hypotheses about bug 207313. 2003-05-30 10:06:29 +00:00