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

Side by Side Diff: net/cert/x509_util.cc

Issue 1408433006: Support tls-server-end-point channel bindings for HTTP authentication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Narrower dependencies, update comments, address review comments. Created 4 years, 9 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
OLDNEW
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/cert/x509_util.h" 5 #include "net/cert/x509_util.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "crypto/ec_private_key.h" 9 #include "crypto/ec_private_key.h"
10 #include "crypto/rsa_private_key.h" 10 #include "crypto/rsa_private_key.h"
11 #include "net/base/hash_value.h"
12 #include "net/cert/internal/parse_certificate.h"
13 #include "net/cert/internal/signature_algorithm.h"
11 #include "net/cert/x509_certificate.h" 14 #include "net/cert/x509_certificate.h"
12 15
13 namespace net { 16 namespace net {
14 17
15 namespace x509_util { 18 namespace x509_util {
16 19
17 // RSA keys created by CreateKeyAndSelfSignedCert will be of this length. 20 // RSA keys created by CreateKeyAndSelfSignedCert will be of this length.
18 static const uint16_t kRSAKeyLength = 1024; 21 static const uint16_t kRSAKeyLength = 1024;
19 22
20 // Certificates made by CreateKeyAndSelfSignedCert and 23 // Certificates made by CreateKeyAndSelfSignedCert and
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 der_cert); 77 der_cert);
75 if (success) 78 if (success)
76 key->reset(new_key.release()); 79 key->reset(new_key.release());
77 80
78 return success; 81 return success;
79 } 82 }
80 83
81 } // namespace x509_util 84 } // namespace x509_util
82 85
83 } // namespace net 86 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/x509_util.h ('k') | net/cert/x509_util_nss.cc » ('j') | net/cert/x509_util_openssl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698