OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/base/cert_database.h" | 5 #include "net/base/cert_database.h" |
6 | 6 |
7 #include <openssl/x509.h> | 7 #include <openssl/x509.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/observer_list_threadsafe.h" | 10 #include "base/observer_list_threadsafe.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 return ERR_CERT_DATE_INVALID; | 28 return ERR_CERT_DATE_INVALID; |
29 | 29 |
30 if (!OpenSSLPrivateKeyStore::GetInstance()->FetchPrivateKey( | 30 if (!OpenSSLPrivateKeyStore::GetInstance()->FetchPrivateKey( |
31 X509_PUBKEY_get(X509_get_X509_PUBKEY(cert->os_cert_handle())))) | 31 X509_PUBKEY_get(X509_get_X509_PUBKEY(cert->os_cert_handle())))) |
32 return ERR_NO_PRIVATE_KEY_FOR_CERT; | 32 return ERR_NO_PRIVATE_KEY_FOR_CERT; |
33 | 33 |
34 return OK; | 34 return OK; |
35 } | 35 } |
36 | 36 |
37 int CertDatabase::AddUserCert(X509Certificate* cert) { | 37 int CertDatabase::AddUserCert(X509Certificate* cert) { |
38 // TODO(bulach): implement me. | |
39 NOTIMPLEMENTED(); | 38 NOTIMPLEMENTED(); |
40 return ERR_NOT_IMPLEMENTED; | 39 return ERR_NOT_IMPLEMENTED; |
41 } | 40 } |
42 | 41 |
43 } // namespace net | 42 } // namespace net |
OLD | NEW |