summaryrefslogtreecommitdiffstats
path: root/net/base/x509_util_nss.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fixing gcc 4.7 building problems.shenhan@google.com2012-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | a) - gcc-4.7 improved the implicit headers that it includes. with <4.7, the gthr-default.h file always pulls in unistd.h. with >=4.7, they avoided that include when possible. so code that isn't including unistd.h itself but needs it now breaks. b) - narrowing conversion in initiliazation list now raises an 'ill-formed conversion' warning, which causes error when -Werror is given. [THIS PART IS NOW REVERTED IN THE PATCH} c) - included patches from pastebin - http://pastebin.com/raw.php?i=p3UKs7Cg Note - this may not be fixing all the gcc 4.7 build problems for all parts, but rather than submitting one big-fix-for-all CL, we'd better do it incrementally (given that all the modification is reasonable and minor) so that at least some parts get a successful gcc 4.7 build. BUG=None TEST=Built successfully using GCC-4.7 under chromium chroot Review URL: https://chromiumcodereview.appspot.com/10451068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140470 0039d316-1c4b-4281-b951-d872f2087c98
* Improve memory usage of SignCertificate.wtc@chromium.org2012-05-031-10/+6
| | | | | | | | | | | | | Don't allocate from cert->arena the memory that's only needed inside the SignCertificate function. R=mattm@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/10335009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135191 0039d316-1c4b-4281-b951-d872f2087c98
* Change Origin bound certs -> Domain bound certs.mattm@chromium.org2012-03-201-31/+33
| | | | | | | | | | BUG=115348 TEST=unit tests, manually checked 'Origin Bound Certs' contents after browsing TBR=jam@chromium.org,willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/9617039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127817 0039d316-1c4b-4281-b951-d872f2087c98
* Remove support for RSA Origin Bound Certificates.mattm@chromium.org2012-02-291-67/+1
| | | | | | | | | | | | | Generating them is too slow & power hungry, especially on mobile devices. BUG=none TEST=unittests Review URL: http://codereview.chromium.org/9372118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124124 0039d316-1c4b-4281-b951-d872f2087c98
* Try#2: Handle Origin Bound Certificate expiration.mattm@chromium.org2011-12-221-14/+21
| | | | | | | | | | | (Initialize test from raw time value to work around inability to parse dates past 2038 on 32-bit linux.) BUG=107047 TEST=net_unittests, unit_tests Review URL: http://codereview.chromium.org/9016002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115463 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 115219 - Handle Origin Bound Certificate expiration.mattm@chromium.org2011-12-211-21/+14
| | | | | | | | | | | | BUG=107047 TEST=net_unittests, unit_tests Review URL: http://codereview.chromium.org/8890073 TBR=mattm@chromium.org Review URL: http://codereview.chromium.org/8965065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115239 0039d316-1c4b-4281-b951-d872f2087c98
* Handle Origin Bound Certificate expiration.mattm@chromium.org2011-12-201-14/+21
| | | | | | | | | BUG=107047 TEST=net_unittests, unit_tests Review URL: http://codereview.chromium.org/8890073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115219 0039d316-1c4b-4281-b951-d872f2087c98
* ReReland: Allow signing EC certs and creating EC origin-bound certs.mattm@chromium.org2011-12-021-64/+99
| | | | | | | | | BUG=88782 TEST=X509UtilNSSTest Review URL: http://codereview.chromium.org/8537025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112780 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 112385 - Reland: Allow signing EC certs and creating EC origin-bound ↵rbyers@chromium.org2011-12-011-99/+64
| | | | | | | | | | | | | | | certs. BUG=88782 TEST=X509UtilNSSTest Review URL: http://codereview.chromium.org/8537025 TBR=mattm@chromium.org Review URL: http://codereview.chromium.org/8764017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112391 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: Allow signing EC certs and creating EC origin-bound certs.mattm@chromium.org2011-12-011-64/+99
| | | | | | | | | | BUG=88782 TEST=X509UtilNSSTest Review URL: http://codereview.chromium.org/8537025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112385 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Allow signing EC certs and creating EC origin-bound certs."mattm@chromium.org2011-11-171-99/+64
| | | | | | | | | | | | Revert "Fix leak in X509UtilNSSTest VerifyCertificateSignature." BUG=88782 TEST=none TBR=cpu@chromium.org Review URL: http://codereview.chromium.org/8587018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110419 0039d316-1c4b-4281-b951-d872f2087c98
* Allow signing EC certs and creating EC origin-bound certs.mattm@chromium.org2011-11-171-64/+99
| | | | | | | | | | BUG=88782 TEST=X509UtilNSSTest Review URL: http://codereview.chromium.org/8537025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110393 0039d316-1c4b-4281-b951-d872f2087c98
* Use NSS to generate Origin-Bound Certs on Win and Mac.mattm@chromium.org2011-10-181-0/+318
The platform RSAPrivateKey is used to generate the private key, which is then imported into NSS to generate the certificate. X509Certificate::CreateOriginBound is moved to x509_util::CreateOriginBoundCert so it can be shared by those platforms, and removes the unnecessary X509Certificate generation step. BUG=88782 TEST=X509UtilNSSTest.CreateOriginBoundCert & manual testing: try on win or mac, check if generated cert has the OBC extension. Review URL: http://codereview.chromium.org/8296014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105997 0039d316-1c4b-4281-b951-d872f2087c98