Only copy the CERTCertTrust passed into the constructor of nsNSSCertTrust
iff it's non-NULL and default a cert type that we don't know, then default
to SERVER_CERT since that's the only type we won't know about.
git-svn-id: svn://10.0.0.236/trunk@98004 18797224-902f-48f8-a5cc-f745e15eee43
Make more SSL dialogs a little taller and give them the ability to
process keyboard events for closing windows in case the dialog is
mis-sized.
git-svn-id: svn://10.0.0.236/trunk@97827 18797224-902f-48f8-a5cc-f745e15eee43
some certs appearing unverified
r=javi;sr,a=blizzard for 0.9.2
a=choffman for trunk and 0.9.2 branch
git-svn-id: svn://10.0.0.236/trunk@97812 18797224-902f-48f8-a5cc-f745e15eee43
Make the unknown issuer error dialog of SSL a little taller so
some of the marginal platforms work and enable key press events
so if there are still users affect by a mis-sized dialog, the users
can at least hit return or ESC.
git-svn-id: svn://10.0.0.236/trunk@97727 18797224-902f-48f8-a5cc-f745e15eee43
r=leaf, sr=blizzard, a=asa
modifications to link crypto into a meta-component for static-build.
git-svn-id: svn://10.0.0.236/trunk@97641 18797224-902f-48f8-a5cc-f745e15eee43
When getting a cert, grab the chain of CA's and import it into the
local cert db.
git-svn-id: svn://10.0.0.236/trunk@97631 18797224-902f-48f8-a5cc-f745e15eee43
Remove '"' character in NS_IMPL_NSGETMODULE declaration. Part of
static branch landing.
git-svn-id: svn://10.0.0.236/trunk@97617 18797224-902f-48f8-a5cc-f745e15eee43
If a user has a PKCS11 smart card installed, then give the user
the option of restoring a p12 file onto the smart card.
git-svn-id: svn://10.0.0.236/trunk@97407 18797224-902f-48f8-a5cc-f745e15eee43
bug #85271: avoid regressions by re-creating the old behavior near |nsCRT::strdup|, see bug #86316
git-svn-id: svn://10.0.0.236/trunk@97311 18797224-902f-48f8-a5cc-f745e15eee43
bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate
features of |nsXPIDLC?String| that keep it out of the string hierarchy
(i.e., using assigment to rebind ownership, static |Copy| members, and
|getter_Shares|), fixing some leaks in the process.
git-svn-id: svn://10.0.0.236/trunk@97292 18797224-902f-48f8-a5cc-f745e15eee43
bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate
features of |nsXPIDLC?String| that keep it out of the string hierarchy
(i.e., using assigment to rebind ownership, static |Copy| members, and
|getter_Shares|), fixing some leaks in the process.
git-svn-id: svn://10.0.0.236/trunk@97290 18797224-902f-48f8-a5cc-f745e15eee43
We need to pass a nsIInterfaceRequestor to PK11_ListCerts
so that the user will get prompted for a password and see
his/her certs on any installed smart cards.
git-svn-id: svn://10.0.0.236/trunk@97175 18797224-902f-48f8-a5cc-f745e15eee43
outside the source tree. Thanks to Chris Seawood <cls@seawood.org> for
the patch. r=wtc@netscape.com. a=blizzard@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@97102 18797224-902f-48f8-a5cc-f745e15eee43
Throw up an alert when a connection is not possible because of
an SSL error.
git-svn-id: svn://10.0.0.236/trunk@97087 18797224-902f-48f8-a5cc-f745e15eee43
Put up an alert notifying the user an SSL error has occurred instead
of silently failing and loading a blank page.
git-svn-id: svn://10.0.0.236/trunk@97085 18797224-902f-48f8-a5cc-f745e15eee43
Leaving a socket in blocking mode after a connect caused SSL/SMTP
to block a thread causing send message to fail when SSL was enabled.
Now we re-set the socket to the non-blocking state it came in with
to connect and set it to block for our write method only.
git-svn-id: svn://10.0.0.236/trunk@97068 18797224-902f-48f8-a5cc-f745e15eee43
Fix for crasher if doing SSL with a site whose certificate
was issued by a cert with a non-ASCII character in its
subject name. We now get the peer's certificate from the
SSL libraries instead of trying to re-parse the UTF8 string
(which NSS doesn't like) into the CERTName structure that's
already in the certificate.
git-svn-id: svn://10.0.0.236/trunk@96862 18797224-902f-48f8-a5cc-f745e15eee43
r=javi, sr=blizzard, a=asa
Thou shalt not return un-initialized variables. (Returns a
constant nsresult in the 2 places where it was returning rv
before.)
git-svn-id: svn://10.0.0.236/trunk@96818 18797224-902f-48f8-a5cc-f745e15eee43
Retry an SSL connection if we fail during first write after a successful connect since it's most likely due to a TLS intolerant server
git-svn-id: svn://10.0.0.236/trunk@96661 18797224-902f-48f8-a5cc-f745e15eee43
Switch reference from "weak" crypto to "low-grade" crypto so
that the warning that comes up is consistent with the prefernces
panel.
git-svn-id: svn://10.0.0.236/trunk@95933 18797224-902f-48f8-a5cc-f745e15eee43
Fixes a slew of cert viewer problems.
Fix the sizing issues with the cert viewer.
Make the General tab of the cert viewer more simple
Have the Details tab of the cert viewer re-populate the ASN1 dump
if a new cert in the chain is selected.
Correct some mis-spelled words.
git-svn-id: svn://10.0.0.236/trunk@95915 18797224-902f-48f8-a5cc-f745e15eee43
go wrong like strings not showing up on Mac builds
and nsKeygenFormProcessor to crash.
git-svn-id: svn://10.0.0.236/trunk@95829 18797224-902f-48f8-a5cc-f745e15eee43