summaryrefslogtreecommitdiffstats
path: root/net/base/x509_certificate_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* X509Certificate::Verify should honor thewtc@chromium.org2009-10-301-5/+3
| | | | | | | | | | | | | | | | | | | VERIFY_REV_CHECKING_ENABLED flag. This allows us to enable part of the X509CertificateTest.PaypalNullCertParsing test for Linux because the test disables revocation checking, thereby avoiding the overly strict assertion in nss_ocsp.cc. Enable cert_pi_useAIACertFetch to fetch missing intermediate CA certificates. Handle a non-certificate error reported by PKIXVerifyCert. R=ukai BUG=none TEST=none Review URL: http://codereview.chromium.org/333033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30585 0039d316-1c4b-4281-b951-d872f2087c98
* Turn off the X509Certificate::Verify call for non-Windows platformswtc@chromium.org2009-10-071-3/+5
| | | | | | | | | | | | because it hits a DCHECK failure in nss_ocsp.cc on Linux. TBR=abarth,ukai BUG=24038 TEST=Debug build of net_unittests should not hit a DCHECK failure in nss_ocsp.cc during the X509CertificateTest.PaypalNullCertParsing test. Review URL: http://codereview.chromium.org/270005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28270 0039d316-1c4b-4281-b951-d872f2087c98
* Add a certificate blacklist for Windows and put thewtc@chromium.org2009-10-071-0/+173
| | | | | | | | | | | | faux www.paypal.com certificate with a NULL byte on the blacklist. R=abarth BUG=24038 TEST=new unit test Review URL: http://codereview.chromium.org/261002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28265 0039d316-1c4b-4281-b951-d872f2087c98
* Use LOAD_VERIFY_EV_CERT to verify EV-ness in Verify().ukai@chromium.org2009-06-231-5/+21
| | | | | | | | | | | | | | | | | If LOAD_VERIFY_EV_CERT is requested on load_flags and revokation checking is performed, Verify() peforms EV certificate verification as well, and sets CERT_STATUS_IS_EV in verify_result. Eliminate X509Certificate::IsEV() BUG=3592 TEST=net_unittests with ALLOW_EXTERNAL_ACCESS=1, \ visit https://www.thawte.com/ and shows EV info. Review URL: http://codereview.chromium.org/125120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19011 0039d316-1c4b-4281-b951-d872f2087c98
* Update google's certificate to the latest version.ukai@chromium.org2009-06-051-34/+34
| | | | | | | | | | | | | | | Current cert was already expired on Sat May 2 17:02:55 UTC 2009. Update to the cert of validity Not Before: Mar 18 23:35:19 2008 GMT Not After : Mar 18 23:35:19 2011 GMT BUG=none TEST=net_unittests passes Review URL: http://codereview.chromium.org/118231 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17706 0039d316-1c4b-4281-b951-d872f2087c98
* Update thawte's certificate to the latest version.ukai@chromium.org2009-06-041-69/+84
| | | | | | | | | | | | | | | | Current cert was already expired on Jan 17 23:59:59 UTC 2009, so we may fail to verify the certificate while checking EV-ness of it. Update to the cert of validity Not Before: Nov 19 00:00:00 2008 GMT Not After : Jan 17 23:59:59 2010 GMT BUG=none TEST=net_unittests passes with ALLOW_EXTERNAL_ACCESS=1 Review URL: http://codereview.chromium.org/118154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17623 0039d316-1c4b-4281-b951-d872f2087c98
* Add a unit test for X509Certificate::Policy.abarth@chromium.org2009-03-191-0/+36
| | | | | | | | TBR=wtc Review URL: http://codereview.chromium.org/50002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12086 0039d316-1c4b-4281-b951-d872f2087c98
* Implement X509Certificate::Persist. dkegel@google.com2009-02-241-1/+15
| | | | | | | | This lets the browser read gmail on linux. Review URL: http://codereview.chromium.org/27033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10269 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 8868.ericroman@google.com2009-01-291-26/+77
| | | | | | | This relands wtc's original CL for working around not caching the intermediate CA certificates. We believe the original commit failed on buildbot because of a bad incremental build, and will be resolved by doing a clobber Review URL: http://codereview.chromium.org/19463 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8870 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 8864.wtc@chromium.org2009-01-291-77/+26
| | | | | | | Revert r8864. It broke the build url_request_intercept_job.cc. Review URL: http://codereview.chromium.org/19462 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8868 0039d316-1c4b-4281-b951-d872f2087c98
* Work around our not caching the intermediate CAwtc@chromium.org2009-01-291-26/+77
| | | | | | | | | | | | | | | | | | | | | | certificates by passing the source of each OSCertHandle to CreateFromHandle and the X509Certificate constructor. If the OSCertHandle comes from the network layer, we know it has a complete certificate chain and therefore prefer it to an OSCertHandle that comes from the HTTP cache, which doesn't have the intermediate CA certificates. A certificate from the network layer can kick out a certificate from the HTTP cache in our certificate cache. This workaround seems good enough to fix all the known symptoms of not caching the intermediate CA certificates. Move the common code in x509_certificate_<os>.cc to x509_certificate.cc. R=eroman BUG=3154,7065 Review URL: http://codereview.chromium.org/18836 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8864 0039d316-1c4b-4281-b951-d872f2087c98
* Move Time, TimeDelta and TimeTicks into namespace base.dsh@google.com2008-10-271-0/+2
| | | | | | Review URL: http://codereview.chromium.org/7995 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4022 0039d316-1c4b-4281-b951-d872f2087c98
* Update unit test to check EV functionality (Windows-only for now).avi@google.com2008-09-291-7/+184
| | | | | | Review URL: http://codereview.chromium.org/4086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2671 0039d316-1c4b-4281-b951-d872f2087c98
* Another unit test parsing the Webkit cert, and the attendent changes needed ↵avi@google.com2008-09-231-3/+168
| | | | | | | | for the Mac version code. Plus, we properly release the certs, so the Purify build should be happier. Review URL: http://codereview.chromium.org/3189 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2482 0039d316-1c4b-4281-b951-d872f2087c98
* Unit test now runs on the Mac.avi@google.com2008-09-221-3/+4
| | | | | | Review URL: http://codereview.chromium.org/3000 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2440 0039d316-1c4b-4281-b951-d872f2087c98
* Accidental commit; oopsavi@google.com2008-09-191-4/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2423 0039d316-1c4b-4281-b951-d872f2087c98
* Unit test now runs on the Mac.avi@google.com2008-09-191-3/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2421 0039d316-1c4b-4281-b951-d872f2087c98
* Oops, expected value comes first.avi@google.com2008-09-191-24/+24
| | | | | | Review URL: http://codereview.chromium.org/3177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2420 0039d316-1c4b-4281-b951-d872f2087c98
* Add unit test for the X509 parsing. This only runs on Windows, but does so ↵avi@google.com2008-09-191-0/+147
successfully. Review URL: http://codereview.chromium.org/2993 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2418 0039d316-1c4b-4281-b951-d872f2087c98