4404 Commits

Author SHA1 Message Date
bishakhabanerjee%netscape.com
c89dbbcf5e patch to correct false failure reporting - bug 167825
git-svn-id: svn://10.0.0.236/trunk@144436 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 17:50:18 +00:00
nelsonb%netscape.com
a22f888a86 Add missing declaration of NSS_Get_SECKEY_EncryptedPrivateKeyInfoTemplate
git-svn-id: svn://10.0.0.236/trunk@144423 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 07:04:30 +00:00
nelsonb%netscape.com
02bbbd5bfa Fix bug 211049. Another issue with empty pointer lists from group
decodings.  Patch by Wan-Teh Chang <wtc@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@144326 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 01:16:57 +00:00
nelsonb%netscape.com
aa6267105e Change the function definitions in dev so that the ctags program will
produce valid tags from these sources.


git-svn-id: svn://10.0.0.236/trunk@144324 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 00:32:22 +00:00
wtc%netscape.com
1d49269e16 Bug 210660: backed out the main change in the fix for bug 145322 because
the adoption of session is not thread safe.  This eliminates most of the
saving of sessions, but we must be correct first, and then optimize.
r=nicolson,nelsonb.
Modified Files: pk11func.h pk11skey.c


git-svn-id: svn://10.0.0.236/trunk@144228 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-27 22:28:50 +00:00
nelsonb%netscape.com
f76d526f1a Fix several bugs reported in bug 210707.
Change loops over RDNs and AVAs to detect NULL pointers.
Change list of attribute type "keywords" to match RFCs and internet
drafts.
Quote attribute values strings that contain adjacent embedded blanks.
Don't quote hex string values.
Always use hex string values when type OID is unrecognized.


git-svn-id: svn://10.0.0.236/trunk@144202 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-27 00:33:05 +00:00
nelsonb%netscape.com
22e603216c Move the declaration for CERT_CompareNameSpace from cert.h to genname.h
because it is a private function.  Change the interface for this
function so that it returns a SECStatus, unambiguously indicating the
success or failure of the name constraints test.  The function no
longer takes a list of cert subject names, instead, it takes a list
of cert pointers, and optionally outputs one of those pointers when
an error occurs.  This eliminates a cert reference leak.


git-svn-id: svn://10.0.0.236/trunk@144179 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-26 01:56:34 +00:00
nelsonb%netscape.com
7e283ffb16 This patch extracts rfc822 names from a cert's distinguished name at the
time when the list of cert names is being built and builds a GeneralName
out of it, just as if the rfc822 name had come from a subject alt name
extension. This way, no special handling is needed of either directory
names or rfc822 names in the name constraints code.  The special "phase 1"
loop in cert_CompareNameWithConstraints disappears compmletely.  And all
the cases in the (former phase 2) loop can now simply assert that the
name's type matches the constraint's type exactly.

This patch also factors out the code that creates new CERTGeneralNames and
that copies a single CERTGeneralName into new separate functions.  This
eliminates a lot of duplicated code whose correctness required lengthy
inspection.  Now these primitive operations are centralized.


git-svn-id: svn://10.0.0.236/trunk@144173 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-26 01:25:10 +00:00
bishakhabanerjee%netscape.com
0efa6eb51c enabling log scraping in header instead
git-svn-id: svn://10.0.0.236/trunk@144158 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 21:57:21 +00:00
bishakhabanerjee%netscape.com
df0d06428d enabling log scraping in header instead, where RESULTDIRURL gets created
git-svn-id: svn://10.0.0.236/trunk@144157 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 21:56:19 +00:00
bishakhabanerjee%netscape.com
8c09ccae81 removed new variable for Win platform - extra - don't need
git-svn-id: svn://10.0.0.236/trunk@144156 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 21:39:54 +00:00
bishakhabanerjee%netscape.com
3978307baf fix URL for Windows platform
git-svn-id: svn://10.0.0.236/trunk@144155 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 20:43:18 +00:00
bishakhabanerjee%netscape.com
c5c2f35659 taking out un-needed stuff
git-svn-id: svn://10.0.0.236/trunk@144153 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 17:39:38 +00:00
wtc%netscape.com
a8fecaa7db Shorten the clickable text portion of RESULTDIRURL.
git-svn-id: svn://10.0.0.236/trunk@144133 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 04:23:34 +00:00
bishakhabanerjee%netscape.com
8425b7d2fa enabling log scraping
git-svn-id: svn://10.0.0.236/trunk@144122 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 00:55:13 +00:00
jst%netscape.com
ecae24eff4 Fixing bug 209884. Writing an inline helper to safely get an nsIScriptContext from a JSContext and making direct callers of JS_GetContextPrivate() use the helper. r=caillon@aillon.org, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@144108 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 21:43:01 +00:00
nelsonb%netscape.com
e0c793b702 Whitespace cleanup. This patch causes numerous lines that were wider
than 80 columns to be folded according to NSS coding conventions.
This patch does not fix any run-time error.


git-svn-id: svn://10.0.0.236/trunk@144074 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 23:15:33 +00:00
jshin%mailaps.org
0f41da8e2f bug 205649 : replace U+00E5 represented in ISO-8859-1 (0xe5) with U+00E5 in
UTF-8 in all XUL files to make them to be genuinely encoded in UTF-8. All the
changes are in comments so that this shouldn't affect anything at run-time.
(r=hwaara)


git-svn-id: svn://10.0.0.236/trunk@144053 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 13:18:12 +00:00
nelsonb%netscape.com
be68bd5876 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.


git-svn-id: svn://10.0.0.236/trunk@144025 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 08:10:07 +00:00
nelsonb%netscape.com
5722104522 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.


git-svn-id: svn://10.0.0.236/trunk@144022 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 07:07:47 +00:00
nelsonb%netscape.com
0e0f5d436b 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.


git-svn-id: svn://10.0.0.236/trunk@144020 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 06:44:43 +00:00
nelsonb%netscape.com
29029da5f0 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.


git-svn-id: svn://10.0.0.236/trunk@144019 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 05:23:07 +00:00
relyea%netscape.com
da74328ba9 Fix deadlock bugscape 46733
git-svn-id: svn://10.0.0.236/trunk@144005 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 23:34:46 +00:00
bishakhabanerjee%netscape.com
987c17b456 sigh, another time
git-svn-id: svn://10.0.0.236/trunk@144003 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 23:24:11 +00:00
bishakhabanerjee%netscape.com
a86f7ac902 one more time, trying to make link clickable
git-svn-id: svn://10.0.0.236/trunk@143995 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 18:36:57 +00:00
nelsonb%netscape.com
aef0d5736d Declare src argument to SEC_ASN1DecodeItem to be const.
git-svn-id: svn://10.0.0.236/trunk@143972 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 01:52:19 +00:00
brendan%mozilla.org
836c4046f7 Don't include private and unnecessary js header files.
git-svn-id: svn://10.0.0.236/trunk@143956 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:13:59 +00:00
bishakhabanerjee%netscape.com
bb43add912 echo out RESULTDIRURL; r=wtc
git-svn-id: svn://10.0.0.236/trunk@143955 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:04:25 +00:00
bishakhabanerjee%netscape.com
3d204fc330 made RESULTDIRURL clickable link; r=wtc
git-svn-id: svn://10.0.0.236/trunk@143954 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:03:59 +00:00
nelsonb%netscape.com
5fe50e71d4 Carry Wan-Teh's fix for bug 208996 forward to trunk.
git-svn-id: svn://10.0.0.236/trunk@143920 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 03:48:19 +00:00
nelsonb%netscape.com
95412857d7 Fix numerous more potential NULL pointer deref crashes. Bug 208038
git-svn-id: svn://10.0.0.236/trunk@143908 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 01:08:53 +00:00
bishakhabanerjee%netscape.com
56d6d5ef64 checking in version 1.60 with additional space
git-svn-id: svn://10.0.0.236/trunk@143877 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 19:13:11 +00:00
neil%parkwaycc.co.uk
e8b502898f Bug 209661 remove unnecessary NS_LITERAL_CSTRING( with ).get() r=jag sr=alecf
git-svn-id: svn://10.0.0.236/trunk@143856 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 14:31:45 +00:00
bishakhabanerjee%netscape.com
9ae8287664 backing out my recent changes - some platforms showing tests failed
git-svn-id: svn://10.0.0.236/trunk@143849 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 08:13:07 +00:00
bishakhabanerjee%netscape.com
3e21a8849e had to put in netscape specific unix base dir as well
git-svn-id: svn://10.0.0.236/trunk@143848 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 07:11:15 +00:00
bishakhabanerjee%netscape.com
919de1e895 put URL specific stuff inside nscp specific loop
git-svn-id: svn://10.0.0.236/trunk@143844 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 06:02:28 +00:00
nelsonb%netscape.com
06e2246375 Further refinements to the Name Constraints checking logic, to make it
more compliant with RFC 3280.  Bug 208047.


git-svn-id: svn://10.0.0.236/trunk@143840 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 04:32:44 +00:00
nelsonb%netscape.com
691797151a 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.


git-svn-id: svn://10.0.0.236/trunk@143828 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 00:38:12 +00:00
nelsonb%netscape.com
5d15f38564 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.


git-svn-id: svn://10.0.0.236/trunk@143826 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 23:44:14 +00:00
kaie%netscape.com
c7884e1bfe b=209082 Certificate viewer is broken
r=danm sr=jst


git-svn-id: svn://10.0.0.236/trunk@143824 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 23:16:23 +00:00
bishakhabanerjee%netscape.com
2eed487e65 modified header to print link of resultsdir to browser log
git-svn-id: svn://10.0.0.236/trunk@143815 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 21:21:33 +00:00
caillon%returnzero.com
0a6d1ae509 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


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
kaie%netscape.com
2298c9f29f b=209168 Mozilla Mail S/Mime instructs NSS to import the wrong certs
r=relyea sr=kin


git-svn-id: svn://10.0.0.236/trunk@143643 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-12 20:03:40 +00:00
nelsonb%netscape.com
6030f5b2d2 const. Got it? Const!
git-svn-id: svn://10.0.0.236/trunk@143610 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 23:12:38 +00:00
seawood%netscape.com
9e4caeaa92 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev
git-svn-id: svn://10.0.0.236/trunk@143522 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 20:12:33 +00:00
seawood%netscape.com
e244edd003 Removing old cfm build files. r=macdev
git-svn-id: svn://10.0.0.236/trunk@143519 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 19:03:46 +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
seawood%netscape.com
ccedc79ca3 Add echo-requires-recursive rule to get a full list of tree's dependencies
git-svn-id: svn://10.0.0.236/trunk@143400 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-06 19:21:57 +00:00
nelsonb%netscape.com
dcc6f42199 Rewrite of cert_CompareNameWithConstraints and the static functions it
calls, to make it conform with RFC 3280.  Bug 208047.


git-svn-id: svn://10.0.0.236/trunk@143388 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-06 09:12:21 +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