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

Side by Side Diff: chrome/common/net/x509_certificate_model_openssl.cc

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
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 "chrome/common/net/x509_certificate_model.h" 5 #include "chrome/common/net/x509_certificate_model.h"
6 6
7 #include <openssl/obj_mac.h> 7 #include <openssl/obj_mac.h>
8 #include <openssl/sha.h> 8 #include <openssl/sha.h>
9 #include <openssl/x509v3.h> 9 #include <openssl/x509v3.h>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "net/base/x509_util_openssl.h" 13 #include "net/cert/x509_util_openssl.h"
14 14
15 namespace x509_util = net::x509_util; 15 namespace x509_util = net::x509_util;
16 16
17 namespace { 17 namespace {
18 18
19 std::string AlternativeWhenEmpty(const std::string& text, 19 std::string AlternativeWhenEmpty(const std::string& text,
20 const std::string& alternative) { 20 const std::string& alternative) {
21 return text.empty() ? alternative : text; 21 return text.empty() ? alternative : text;
22 } 22 }
23 23
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 std::string ProcessRawBitsSignatureWrap( 262 std::string ProcessRawBitsSignatureWrap(
263 net::X509Certificate::OSCertHandle cert_handle) { 263 net::X509Certificate::OSCertHandle cert_handle) {
264 // TODO(bulach): implement me. 264 // TODO(bulach): implement me.
265 return ""; 265 return "";
266 } 266 }
267 267
268 void RegisterDynamicOids() { 268 void RegisterDynamicOids() {
269 } 269 }
270 270
271 } // namespace x509_certificate_model 271 } // namespace x509_certificate_model
OLDNEW
« no previous file with comments | « chrome/common/net/x509_certificate_model_nss.cc ('k') | chrome/common/net/x509_certificate_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698