diff options
author | snej@chromium.org <snej@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 17:47:02 +0000 |
---|---|---|
committer | snej@chromium.org <snej@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 17:47:02 +0000 |
commit | cdafbff7b3e83702c20b0f754a6d27159b78c06c (patch) | |
tree | 5b66619f7822e7189e8cc3287365ed49808d3c72 /net/base/cert_database.h | |
parent | 078a10a1c64458e5f5c4fdf57edbbc935dd145ca (diff) | |
download | chromium_src-cdafbff7b3e83702c20b0f754a6d27159b78c06c.zip chromium_src-cdafbff7b3e83702c20b0f754a6d27159b78c06c.tar.gz chromium_src-cdafbff7b3e83702c20b0f754a6d27159b78c06c.tar.bz2 |
Mac: implement <keygen> support, including adding generated cert to the Keychain.
BUG=34607
TEST=KeygenHandlerTest.SmokeTest
Review URL: http://codereview.chromium.org/652137
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_database.h')
-rw-r--r-- | net/base/cert_database.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/net/base/cert_database.h b/net/base/cert_database.h index e78c22e..3eb2836 100644 --- a/net/base/cert_database.h +++ b/net/base/cert_database.h @@ -20,9 +20,14 @@ class CertDatabase { public: CertDatabase(); - // Extract and Store User (Client) Certificate from a data blob. - // Return true if successful. - bool AddUserCert(const char* data, int len); + // Check whether this is a valid user cert that we have the private key for. + // Returns OK or a network error code such as ERR_CERT_CONTAINS_ERRORS. + int CheckUserCert(X509Certificate* cert); + + // Store user (client) certificate. Assumes CheckUserCert has already passed. + // Returns OK, or ERR_ADD_USER_CERT_FAILED if there was a problem saving to + // the platform cert database, or possibly other network error codes. + int AddUserCert(X509Certificate* cert); private: void Init(); |