Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: net/base/test_root_certs_openssl.cc

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/origin_bound_cert_service.cc ('k') | net/disk_cache/file_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/test_root_certs.h" 5 #include "net/base/test_root_certs.h"
6 6
7 #include <openssl/err.h> 7 #include <openssl/err.h>
8 #include <openssl/x509v3.h> 8 #include <openssl/x509v3.h>
9 9
10 #include "base/location.h"
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "base/tracked.h"
12 #include "crypto/openssl_util.h" 12 #include "crypto/openssl_util.h"
13 #include "net/base/x509_certificate.h" 13 #include "net/base/x509_certificate.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 bool TestRootCerts::Add(X509Certificate* certificate) { 17 bool TestRootCerts::Add(X509Certificate* certificate) {
18 if (!X509_STORE_add_cert(X509Certificate::cert_store(), 18 if (!X509_STORE_add_cert(X509Certificate::cert_store(),
19 certificate->os_cert_handle())) { 19 certificate->os_cert_handle())) {
20 unsigned long error_code = ERR_peek_error(); 20 unsigned long error_code = ERR_peek_error();
21 if (ERR_GET_LIB(error_code) != ERR_LIB_X509 || 21 if (ERR_GET_LIB(error_code) != ERR_LIB_X509 ||
(...skipping 20 matching lines...) Expand all
42 return empty_; 42 return empty_;
43 } 43 }
44 44
45 TestRootCerts::~TestRootCerts() {} 45 TestRootCerts::~TestRootCerts() {}
46 46
47 void TestRootCerts::Init() { 47 void TestRootCerts::Init() {
48 empty_ = true; 48 empty_ = true;
49 } 49 }
50 50
51 } // namespace net 51 } // namespace net
OLDNEW
« no previous file with comments | « net/base/origin_bound_cert_service.cc ('k') | net/disk_cache/file_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698